summaryrefslogtreecommitdiff
path: root/linguistic/source/spelldsp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-09-10 16:58:04 +0200
committerNoel Grandin <noel@peralex.com>2013-09-11 09:45:41 +0200
commit7c3bb56d60b5d33fc7da1cdef3a7f9f2aa956b12 (patch)
tree1203e22dac3b20635c27f9845345a9235fc88993 /linguistic/source/spelldsp.cxx
parent5118cb286865a6617273cb1a8de963b893cdf86c (diff)
convert linguistic/source/*.cxx from String to OUString
Change-Id: I6f278d4b1a0eccf3757e1a7add6324402a09dfed
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r--linguistic/source/spelldsp.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index 9a1ebca67220..3b2e04f30f1a 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -302,10 +302,10 @@ sal_Bool SpellCheckerDispatcher::isValid_Impl(
Locale aLocale( LanguageTag::convertToLocale( nLanguage ) );
// replace typographical apostroph by ascii apostroph
- String aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
- DBG_ASSERT( 1 == aSingleQuote.Len(), "unexpectend length of quotation mark" );
- if (aSingleQuote.Len())
- aChkWord = aChkWord.replace( aSingleQuote.GetChar(0), '\'' );
+ OUString aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
+ DBG_ASSERT( 1 == aSingleQuote.getLength(), "unexpectend length of quotation mark" );
+ if (!aSingleQuote.isEmpty())
+ aChkWord = aChkWord.replace( aSingleQuote[0], '\'' );
RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))
@@ -469,10 +469,10 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
Locale aLocale( LanguageTag::convertToLocale( nLanguage ) );
// replace typographical apostroph by ascii apostroph
- String aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
- DBG_ASSERT( 1 == aSingleQuote.Len(), "unexpectend length of quotation mark" );
- if (aSingleQuote.Len())
- aChkWord = aChkWord.replace( aSingleQuote.GetChar(0), '\'' );
+ OUString aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
+ DBG_ASSERT( 1 == aSingleQuote.getLength(), "unexpectend length of quotation mark" );
+ if (!aSingleQuote.isEmpty())
+ aChkWord = aChkWord.replace( aSingleQuote[0], '\'' );
RemoveHyphens( aChkWord );
if (IsIgnoreControlChars( rProperties, GetPropSet() ))