Merge lp:~mc-return/unity/unity.merge-optimize-performance-and-style into lp:unity
| Status: | Merged |
|---|---|
| Approved by: | Łukasz Zemczak on 2012-08-03 |
| Approved revision: | 2550 |
| Merged at revision: | 2534 |
| Proposed branch: | lp:~mc-return/unity/unity.merge-optimize-performance-and-style |
| Merge into: | lp:unity |
| Diff against target: |
420 lines (+34/-39) 18 files modified
UnityCore/HomeLens.cpp (+3/-3) dash/ResultView.cpp (+1/-1) dash/ResultViewGrid.cpp (+1/-1) launcher/Launcher.cpp (+8/-8) launcher/LauncherController.cpp (+1/-1) launcher/LauncherModel.cpp (+3/-3) panel/PanelIndicatorEntryView.cpp (+1/-2) panel/PanelMenuView.cpp (+1/-1) plugins/unity-mt-grab-handles/src/unity-mt-grab-handles.cpp (+1/-1) plugins/unitydialog/src/unitydialog.cpp (+3/-4) plugins/unityshell/src/nux-layout-accessible.cpp (+1/-1) plugins/unityshell/src/unity-launcher-accessible.cpp (+1/-1) plugins/unityshell/src/unity-switcher-accessible.cpp (+1/-1) plugins/unityshell/src/unityshell.cpp (+3/-5) unity-shared/BGHash.cpp (+1/-1) unity-shared/DashStyle.cpp (+1/-1) unity-shared/IconRenderer.cpp (+2/-3) unity-shared/PluginAdapterCompiz.cpp (+1/-1) |
| To merge this branch: | bzr merge lp:~mc-return/unity/unity.merge-optimize-performance-and-style |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brandon Schaefer (community) | Approve on 2012-07-30 | ||
| MC Return (community) | Resubmit on 2012-07-30 | ||
| Marco Trevisan (Treviño) | 2012-07-30 | Approve on 2012-07-30 | |
|
Review via email:
|
|||
Commit Message
Optimized performance and style following suggestions reported by cppcheck:
1. Reduced the scope of various variables.
2. Used prefix ++ operators for non-primitive types, because those can be more efficient than post-increment. Post-increment usually keeps a copy of the previous value, adds extra code and is slower.
Description of the Change
Optimized performance and style following suggestions reported by cppcheck:
1. Reduced the scope of various variables.
2. Used prefix ++ operators for non-primitive types, because those can be more efficient than post-increment. Post-increment usually keeps a copy of the previous value, adds extra code and is slower.
| Unity Merger (unity-merger) wrote : | # |
No commit message specified.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Andrea Azzarone (azzar1) wrote : | # |
I prefer to use pre-increment operator for primitive types too.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.
| Unity Merger (unity-merger) wrote : | # |
The Jenkins job https:/
Not merging it.


Nice, thanks!