diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2011-11-02 17:33:38 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2012-01-04 06:53:54 (GMT) |
commit | 5ae8bdf49db36b2691ce545e3285f9ee64f92148 (patch) | |
tree | 5ef8285a7f6c54a35544903c05018fd0445aee30 /src/FbTk/ImageImlib2.cc | |
parent | f859e78cb24cf69cc06e4395c58d804537f301c7 (diff) | |
download | fluxbox_pavel-5ae8bdf49db36b2691ce545e3285f9ee64f92148.zip fluxbox_pavel-5ae8bdf49db36b2691ce545e3285f9ee64f92148.tar.bz2 |
Pre-increment non-primitive types.
Found with cppcheck:
"Prefix ++/-- operators should be preferred for non-primitive
types. Pre-increment/decrement can be more efficient than
post-increment/decrement. Post-increment/decrement usually
involves keeping a copy of the previous value around and adds
a little extra code."
Diffstat (limited to 'src/FbTk/ImageImlib2.cc')
-rw-r--r-- | src/FbTk/ImageImlib2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/ImageImlib2.cc b/src/FbTk/ImageImlib2.cc index 21202a1..af103bd 100644 --- a/src/FbTk/ImageImlib2.cc +++ b/src/FbTk/ImageImlib2.cc | |||
@@ -36,7 +36,7 @@ public: | |||
36 | 36 | ||
37 | std::map<int, Imlib_Context>::iterator it = this->begin(); | 37 | std::map<int, Imlib_Context>::iterator it = this->begin(); |
38 | std::map<int, Imlib_Context>::iterator it_end = this->end(); | 38 | std::map<int, Imlib_Context>::iterator it_end = this->end(); |
39 | for (; it != it_end; it++) { | 39 | for (; it != it_end; ++it) { |
40 | imlib_context_free(it->second); | 40 | imlib_context_free(it->second); |
41 | } | 41 | } |
42 | 42 | ||