cocos2d-x / plugin-x

Plugin-x is the plugin repository for cocos2d-x, it also provides a unified API for plugins.
71 stars 92 forks source link

Performance tweak: use range-based for loops instead #175

Closed Rubonnek closed 7 years ago

Rubonnek commented 7 years ago

On my cocos2d-x git repository, cppcheck reported the following:

[plugin/protocols/platform/android/PluginUtils.cpp:224]: (performance) Prefer prefix ++/-- operators for non-primitive types.
[plugin/protocols/platform/android/PluginUtils.cpp:249]: (performance) Prefer prefix ++/-- operators for non-primitive types.

This pull request mitigates those messages.

Rubonnek commented 7 years ago

@minggo Any chance this pull request could get merged or reviewed? I almost redid this when I scanned again with cppcheck and saw those messages again.

Rubonnek commented 7 years ago

@minggo Thanks.