[PATCH] cppcheck: Prefer prefix ++/-- operators

Andy Holder andy.m.holder at gmail.com
Sat Jan 29 08:55:22 PST 2011


---
 vcl/win/source/gdi/salgdi3.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index 5f005ad..93fa079 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -213,7 +213,7 @@ ImplFontAttrCache::~ImplFontAttrCache()
 
                 aCacheFile.WriteByteStringLine( rDFA.maStyleName, RTL_TEXTENCODING_UTF8 );
 
-                aIter++;
+                ++aIter;
             }
             // EOF Marker
             String aEmptyStr;
-- 
1.7.3.5


--MP_/csnRX9g0tM83IbY+GE7hGbm
Content-Type: text/x-patch
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename=0001-cppcheck-remove-unused-variable-writer.patch



More information about the LibreOffice mailing list