[Libreoffice-commits] .: cui/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Jan 1 13:22:53 PST 2011
cui/source/dialogs/SpellDialog.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit dba5ef1b8aaf04ff879e81c4df54e4d4be95a664
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Jan 1 21:21:56 2011 +0000
cppcheck: prefer prefix variant
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 5e86ed2..5165c32 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;
}
More information about the Libreoffice-commits
mailing list