Merge lp:~steve-stevebaker/nux/coverity-fixes into lp:nux
Proposed by
Steve Baker
Status: | Merged | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Tim Penhey | ||||||||||||||||
Approved revision: | 625 | ||||||||||||||||
Merged at revision: | 621 | ||||||||||||||||
Proposed branch: | lp:~steve-stevebaker/nux/coverity-fixes | ||||||||||||||||
Merge into: | lp:nux | ||||||||||||||||
Diff against target: |
99 lines (+11/-11) 4 files modified
Nux/AnimatedTextureArea.cpp (+2/-2) NuxGraphics/FontTexture.cpp (+7/-7) NuxGraphics/GLTextureResourceManager.cpp (+1/-1) tools/unity_support_test.c (+1/-1) |
||||||||||||||||
To merge this branch: | bzr merge lp:~steve-stevebaker/nux/coverity-fixes | ||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Penhey (community) | Approve | ||
Steve Baker (community) | Needs Resubmitting | ||
Jay Taoko | Pending | ||
Review via email: mp+108523@code.launchpad.net |
Commit message
Cleaning up some coverity warnings.
Description of the change
Some janitorial work going through some Coverity bugs, just to get familiar with the codebase.
To post a comment you must log in.
Single letter variables are fine if and only if they are used very close to their declaration.
The change in Nux/AnimatedTex tureArea. cpp is acceptable because there is only one use, and it is effectively the next line.
However the change in NuxGraphics/ FontTexture. cpp is not so acceptable. Oh dear, just read the source. Just renaming this to "stream" for now would be fine, although the entire function needs refactoring.
For the snprintf, please use sizeof( resultfilename) not the hard coded value of 27.