Merge lp:~widelands-dev/widelands/bug-986611-cppcheck_performance-ui into lp:widelands
Proposed by
GunChleoc
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8043 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-986611-cppcheck_performance-ui | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
424 lines (+88/-65) 24 files modified
src/ui_basic/listselect.cc (+1/-1) src/ui_basic/listselect.h (+1/-1) src/ui_basic/slider.cc (+1/-1) src/ui_basic/slider.h (+1/-1) src/ui_basic/table.h (+1/-1) src/ui_fsmenu/base.cc (+3/-4) src/wui/field_overlay_manager.cc (+1/-1) src/wui/field_overlay_manager.h (+1/-1) src/wui/game_debug_ui.cc (+1/-1) src/wui/game_debug_ui.h (+1/-1) src/wui/interactive_base.h (+1/-1) src/wui/interactive_gamebase.h (+1/-1) src/wui/interactive_player.cc (+1/-1) src/wui/interactive_player.h (+2/-2) src/wui/interactive_spectator.cc (+1/-1) src/wui/interactive_spectator.h (+1/-1) src/wui/mapdata.cc (+54/-34) src/wui/mapdata.h (+8/-4) src/wui/plot_area.cc (+1/-1) src/wui/plot_area.h (+1/-1) src/wui/vector.h (+2/-2) src/wui/waresdisplay.cc (+1/-1) src/wui/watchwindow.cc (+1/-1) src/wui/watchwindow.h (+1/-1) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-986611-cppcheck_performance-ui | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Review via email: mp+300992@code.launchpad.net |
Commit message
Fixed performance issues in UI classes that were flagged up by cppcheck and fixed a textdomain issue in wui/mapdata.
Performance issues fixed are:
- Prefer prefix ++ operator in wui/waresdispla
- Constructor initialization in ui_fsmenu/base and wui/mapdata.
- Passing parameters per reference.
Description of the change
Fixed performance issues in UI classes that were flagged up by cppcheck and fixed a textdomain issue in wui/mapdata.
Performance issues fixed are:
- Prefer prefix ++ operator in wui/waresdispla
- Constructor initialization in ui_fsmenu/base and wui/mapdata.
- Passing parameters per reference.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 1207. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 146981830. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_986611_ cppcheck_ performance_ ui-1046.
Appveyor build 1046. State: failed. Details: https:/