summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-13 14:16:51 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-13 16:23:26 +0100
commit077723111292ea615437f3bc2f1e47cf77d7ad42 (patch)
treef851f81cea82fcbf8251f8418b3f2a26f3085f64 /sd
parent386a85ed50a3e4832644072950a30304ba6c58a6 (diff)
V803 decreased performance postfix increment
These are pretty silly anyway, but apparently it complains even about integer variables which make this rather a waste of time. Change-Id: I15e847d33d5decd2adcab04e4f1567d3997d28a2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/shapelist.cxx2
-rw-r--r--sd/source/ui/view/ViewShellManager.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/core/shapelist.cxx b/sd/source/core/shapelist.cxx
index a265e9c93eff..47ba5e281705 100644
--- a/sd/source/core/shapelist.cxx
+++ b/sd/source/core/shapelist.cxx
@@ -133,7 +133,7 @@ void ShapeList::seekShape( sal_uInt32 nIndex )
{
maIter = maShapeList.begin();
while( nIndex-- && (maIter != maShapeList.end()) )
- maIter++;
+ ++maIter;
}
bool ShapeList::hasMore() const
diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx
index ad678affd91b..4587c0550e27 100644
--- a/sd/source/ui/view/ViewShellManager.cxx
+++ b/sd/source/ui/view/ViewShellManager.cxx
@@ -997,7 +997,7 @@ IMPL_LINK(ViewShellManager::Implementation, WindowEventHandler, VclWindowEvent*,
{
for (ActiveShellList::iterator aI(maActiveViewShells.begin());
aI!=maActiveViewShells.end();
- aI++)
+ ++aI)
{
if (pEventWindow == static_cast< ::vcl::Window*>(aI->GetWindow()))
{