[Libreoffice-commits] core.git: include/cppuhelper sw/inc
Muhammet Kara
muhammet.kara at pardus.org.tr
Mon Jan 2 10:36:55 UTC 2017
include/cppuhelper/interfacecontainer.h | 2 +-
sw/inc/dbgoutsw.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 136f5a209e1ca19f7d7b8eb69bb76e7d1b2c07e6
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date: Mon Dec 26 14:47:51 2016 +0300
Prefer prefix ++/-- operators for non-primitive types.
Change-Id: I9be657cd0b5ed964db8db2ca28fd2874ae5406aa
cppcheck: performance
Reviewed-on: https://gerrit.libreoffice.org/32431
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/include/cppuhelper/interfacecontainer.h b/include/cppuhelper/interfacecontainer.h
index 2a88f39..151ff6f 100644
--- a/include/cppuhelper/interfacecontainer.h
+++ b/include/cppuhelper/interfacecontainer.h
@@ -410,7 +410,7 @@ private:
equalImpl equal;
if( equal( iter->first, rKey ) )
break;
- iter++;
+ ++iter;
}
return iter;
}
diff --git a/sw/inc/dbgoutsw.hxx b/sw/inc/dbgoutsw.hxx
index 5fcf8af..e70d032 100644
--- a/sw/inc/dbgoutsw.hxx
+++ b/sw/inc/dbgoutsw.hxx
@@ -84,7 +84,7 @@ OUString lcl_dbg_out(const std::unordered_map<tKey, tMember, fHashFunction> & rM
typename std::unordered_map<tKey, tMember, fHashFunction>::const_iterator aIt;
- for (aIt = rMap.begin(); aIt != rMap.end(); aIt++)
+ for (aIt = rMap.begin(); aIt != rMap.end(); ++aIt)
{
if (aIt != rMap.begin())
aResult += ", ";
More information about the Libreoffice-commits
mailing list