Merge lp:~mc-return/unity/unity.merge-fix1131152-cppcheck-issues into lp:unity
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrea Azzarone | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 3168 | ||||
Proposed branch: | lp:~mc-return/unity/unity.merge-fix1131152-cppcheck-issues | ||||
Merge into: | lp:unity | ||||
Diff against target: |
54 lines (+5/-6) 4 files modified
plugins/unityshell/src/unity-util-accessible.cpp (+1/-0) shortcuts/ShortcutHintPrivate.cpp (+2/-4) unity-shared/DashStyle.cpp (+1/-2) unity-shared/LayoutSystem.cpp (+1/-0) |
||||
To merge this branch: | bzr merge lp:~mc-return/unity/unity.merge-fix1131152-cppcheck-issues | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+149801@code.launchpad.net |
Commit message
Fixed some issues reported by cppcheck:
* Hopefully fixed memory leak of atk_event.
* size_t index is always unsigned, so the check if it is >= 0
is redundant and can be removed.
The else branch will never be executed so it can be removed
as well.
* Do not assign true to bool odd, because this value is never used.
Instead declare and assign the value in one line.
* Also initialize the struct LayoutWindow member variable float alpha
with 0.0f in the LayoutWindow:
(LP: #1131152)
Description of the change
Problems reported by cppcheck:
[unity-
[unity-
[shortcuts/
[plugins/
Note:
This MP does not contain any logic changes, so the function GetMetaKey(