Code conforms with the cocos2d-x c++ guidelines
Merge pull request #9238 from ricardoquesada/guideline_fixes

Code conforms with the cocos2d-x c++ guidelines