Merge lp:~mc-return/compiz/compiz.merge-fix1033877-fix-uninitialized-class-member-variables-in-constructors into lp:compiz/0.9.9
Proposed by
MC Return
Status: | Merged |
---|---|
Approved by: | Stephen M. Webb |
Approved revision: | 3456 |
Merged at revision: | 3447 |
Proposed branch: | lp:~mc-return/compiz/compiz.merge-fix1033877-fix-uninitialized-class-member-variables-in-constructors |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
132 lines (+34/-4) 8 files modified
plugins/animation/src/glide.cpp (+2/-1) plugins/animation/src/magiclamp.cpp (+3/-1) plugins/composite/src/screen.cpp (+14/-0) plugins/decor/src/decor.cpp (+1/-0) plugins/ezoom/src/ezoom.cpp (+7/-1) plugins/opengl/src/screen.cpp (+1/-0) plugins/opengl/src/vertexbuffer.cpp (+2/-1) plugins/staticswitcher/src/staticswitcher.cpp (+4/-0) |
To merge this branch: | bzr merge lp:~mc-return/compiz/compiz.merge-fix1033877-fix-uninitialized-class-member-variables-in-constructors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephen M. Webb | Approve | ||
Sam Spilsbury | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+132813@code.launchpad.net |
Commit message
Initialized all class member variables in their respective constructors.
Used false for bools, 0.0f for floats, 0 for ints and 0 for object pointers like *autoProgram and *screen.
Description of the change
Initialized all class member variables in their respective constructors.
Used false for bools, 0.0f for floats, 0 for ints and 0 for object pointers like *autoProgram and *screen.
Should I have used NULL to initialize the individual object pointers ?
Note: I did not fix the same issue for currently disabled plug-ins like trip or non-working plug-ins like firepaint or showmouse. So these tasks still remain open.
To post a comment you must log in.
This is good, although I remember someone once told me that they get zero-initialized automatically. I could be wrong though.