From 136f5a209e1ca19f7d7b8eb69bb76e7d1b2c07e6 Mon Sep 17 00:00:00 2001 From: Muhammet Kara Date: Mon, 26 Dec 2016 14:47:51 +0300 Subject: Prefer prefix ++/-- operators for non-primitive types. Change-Id: I9be657cd0b5ed964db8db2ca28fd2874ae5406aa cppcheck: performance Reviewed-on: https://gerrit.libreoffice.org/32431 Tested-by: Jenkins Reviewed-by: Julien Nabet --- include/cppuhelper/interfacecontainer.h | 2 +- sw/inc/dbgoutsw.hxx | 2 +- 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 & rM typename std::unordered_map::const_iterator aIt; - for (aIt = rMap.begin(); aIt != rMap.end(); aIt++) + for (aIt = rMap.begin(); aIt != rMap.end(); ++aIt) { if (aIt != rMap.begin()) aResult += ", "; -- cgit