summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2016-12-26 14:47:51 +0300
committerJulien Nabet <serval2412@yahoo.fr>2017-01-02 10:36:33 +0000
commit136f5a209e1ca19f7d7b8eb69bb76e7d1b2c07e6 (patch)
tree743113d728aa71152d18bed58cfc39c613146f37
parentf42751f534f56f1d465582ebce8d17094f640175 (diff)
Prefer prefix ++/-- operators for non-primitive types.
Change-Id: I9be657cd0b5ed964db8db2ca28fd2874ae5406aa cppcheck: performance Reviewed-on: https://gerrit.libreoffice.org/32431 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--include/cppuhelper/interfacecontainer.h2
-rw-r--r--sw/inc/dbgoutsw.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cppuhelper/interfacecontainer.h b/include/cppuhelper/interfacecontainer.h
index 2a88f39e5648..151ff6f81424 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 5fcf8af7460b..e70d032ff803 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 += ", ";