Merge lp:~widelands-dev/widelands/bug-986611-cppcheck-pass-by-reference into lp:widelands
Proposed by
GunChleoc
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8389 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-986611-cppcheck-pass-by-reference | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
315 lines (+29/-30) 20 files modified
src/base/i18n.cc (+2/-2) src/base/i18n.h (+2/-2) src/editor/tools/tool_action.h (+1/-1) src/graphic/text/rt_errors_impl.h (+1/-1) src/graphic/text/rt_parse.h (+1/-1) src/graphic/text/textstream.cc (+2/-2) src/graphic/text/textstream.h (+2/-3) src/logic/map_objects/map_object.h (+1/-1) src/logic/map_objects/tribes/tribe_basic_info.h (+1/-1) src/network/gamehost.cc (+2/-2) src/network/gamehost.h (+2/-2) src/network/internet_gaming.cc (+3/-3) src/network/internet_gaming.h (+1/-1) src/notifications/notifications_impl.h (+1/-1) src/wlapplication.h (+1/-1) src/wui/game_debug_ui.cc (+2/-2) src/wui/game_main_menu_save_game.cc (+1/-1) src/wui/game_main_menu_save_game.h (+1/-1) src/wui/game_message_menu.cc (+1/-1) src/wui/game_message_menu.h (+1/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-986611-cppcheck-pass-by-reference | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Needs Fixing | ||
Review via email: mp+326257@code.launchpad.net |
Commit message
Pass function arguments per const reference where possible.
Description of the change
This cleanup should gain us a bit of performance. Changes are pretty trivial (argument -> (const) argument&)
To post a comment you must log in.
Thanks for the review - I have reverted those changes.