summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-01 21:21:56 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-01 21:21:56 +0000
commit181de27b2e3dea1931aeb24f15407a26265d87ce (patch)
treeebb4a1bb98c05155837e6226e3f2d271e44e835e
parentefc67536bb52442599f1f35e1408231cb1aeba02 (diff)
cppcheck: prefer prefix variant
-rw-r--r--cui/source/dialogs/SpellDialog.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 55717e723a64..871a59925111 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1160,7 +1160,7 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck)
// hidden text has to be ignored
if(!aStart->bIsHidden)
sText += aStart->sText;
- aStart++;
+ ++aStart;
}
aSentenceED.SetText(sText);
aStart = aSentence.begin();
@@ -1202,7 +1202,7 @@ bool SpellDialog::GetNextSentence_Impl(bool bUseSavedSentence, bool bRecheck)
aSentenceED.SetAttrib( SpellLanguageAttrib(aStart->eLanguage), 0, (USHORT) nStartPosition, (USHORT) nEndPosition );
nStartPosition = nEndPosition;
}
- aStart++;
+ ++aStart;
}
//the edit field needs to be modified to apply the change from the ApplyChangeAllList
if(!bHasReplaced)
@@ -1242,7 +1242,7 @@ bool SpellDialog::ApplyChangeAllList_Impl(SpellPortions& rSentence, bool &bHasRe
}
else if( aStart->bIsGrammarError )
bRet = true;
- aStart++;
+ ++aStart;
}
return bRet;
}