Hullo List,
Same as earlier, EasyHack cppcheck-found post to pre increment iterator.
Cheers,
Kevin
From d623b58d83d254893dd212548461e492e3c2d13b Mon Sep 17 00:00:00 2001
From: Kevin Hunter <hunteke@earlham.edu>
Date: Thu, 10 Feb 2011 16:24:34 -0500
Subject: [PATCH] cppcheck: post- to pre- *crement change.
---
crashrep/source/win32/soreport.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/crashrep/source/win32/soreport.cpp b/crashrep/source/win32/soreport.cpp
index a05d01a..91e202a 100644
--- a/crashrep/source/win32/soreport.cpp
+++ b/crashrep/source/win32/soreport.cpp
@@ -1833,9 +1833,7 @@ bool WriteChecksumFile( FILE *fchksum, const hash_map< string, string >&
rLibrar
hash_map< string, string >::const_iterator iter;
- for ( iter = rLibraries.begin();
- iter != rLibraries.end();
- iter++ )
+ for ( iter = rLibraries.begin(); iter != rLibraries.end(); ++iter )
{
sal_uInt8 checksum[RTL_DIGEST_LENGTH_MD5];
sal_uInt32 nBytesProcessed = calc_md5_checksum(
--
1.7.1
Context
- [Libreoffice] [PATCH] easyhack: cppcheck pre/post change · Kevin Hunter
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.