Fixing c++ code style according to google style guide.