summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-28 14:00:32 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-28 14:48:06 -0400
commit53bb6c9871482e6d1cac133d79eb9c58f8109fc8 (patch)
tree23b98b64ac53c727de3d82bf31f454e535c22fdb /editeng
parentNo need to fully qualify these. (diff)
downloadcore-53bb6c9871482e6d1cac133d79eb9c58f8109fc8.tar.gz
core-53bb6c9871482e6d1cac133d79eb9c58f8109fc8.zip
String to OUString.
Change-Id: I35ac8e9480a7540e049dc251a1470a27f0c2eafd
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit4.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index e4de588b1d87..3b5bac35ac71 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -2230,7 +2230,7 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
even out properly with VDev on transitions from wrong => right)
*/
- if ( !xSpeller.is() )
+ if ( !xSpeller.is() )
return;
EditPaM aCursorPos;
@@ -2273,7 +2273,6 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
break; // Document end or end of invalid region
aSel = SelectWord( aSel, i18n::WordType::DICTIONARY_WORD );
- String aWord( GetSelected( aSel ) );
// If afterwards a dot, this must be handed over!
// If an abbreviation ...
bool bDottAdded = false;
@@ -2283,14 +2282,13 @@ void ImpEditEngine::DoOnlineSpelling( ContentNode* pThisNodeOnly, bool bSpellAtC
if ( cNext == '.' )
{
aSel.Max().GetIndex()++;
- aWord += cNext;
bDottAdded = true;
}
}
-
+ OUString aWord = GetSelected(aSel);
bool bChanged = false;
- if ( aWord.Len() > 0 )
+ if (!aWord.isEmpty())
{
sal_uInt16 nWStart = aSel.Min().GetIndex();
sal_uInt16 nWEnd= aSel.Max().GetIndex();