summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-08-01 19:31:34 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-01 19:33:22 +0200
commit44cd9ef88bfc14b4520de8a73a692f0d59c40946 (patch)
treef7a358c1a6dc342519b45b9e248ee40eab5edc4f /cui
parent9b49846fad132f121b2848c69477e42a0051884e (diff)
sal_uInt16 to sal_Int32, constify, minor optimizations
Change-Id: Icc41bbe09e495454ca27e9281eca6f4731a135c8
Diffstat (limited to 'cui')
-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 631ab8c473dc..754cb7bbf42f 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1601,10 +1601,10 @@ bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, css::uno:
ChangeMarkedWord(sReplacement, LanguageTag::convertToLanguageType( pSpellErrorDescription->aLocale ));
- aCursor.GetIndex() = aCursor.GetIndex() + (sal_uInt16)(xEntry->getReplacementText().getLength());
+ aCursor.GetIndex() += xEntry->getReplacementText().getLength();
// maybe the error found here is already added to the dictionary and has to be ignored
} else if(pSpellErrorDescription && !bGrammarError && xSpell->isValid( GetErrorText(), LanguageTag::convertToLanguageType( pSpellErrorDescription->aLocale ), Sequence< PropertyValue >() )) {
- aCursor.GetIndex() = aCursor.GetIndex() + 1;
+ ++aCursor.GetIndex();
}
else
break;
@@ -1853,7 +1853,7 @@ svx::SpellPortions SentenceEditWindow_Impl::CreateSpellPortions( bool bSetIgnore
pLastError = pError;
}
- aCursor.GetIndex()++;
+ ++aCursor.GetIndex();
}
if(nTextLen && aBreakPositions.empty())