summaryrefslogtreecommitdiff
path: root/linguistic/source/hyphdta.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/hyphdta.cxx
parent5118cb286865a6617273cb1a8de963b893cdf86c (diff)
convert linguistic/source/*.cxx from String to OUString
Change-Id: I6f278d4b1a0eccf3757e1a7add6324402a09dfed
Diffstat (limited to 'linguistic/source/hyphdta.cxx')
-rw-r--r--linguistic/source/hyphdta.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/hyphdta.cxx b/linguistic/source/hyphdta.cxx
index f5ce5b157acd..b2dfad2f7d1f 100644
--- a/linguistic/source/hyphdta.cxx
+++ b/linguistic/source/hyphdta.cxx
@@ -48,16 +48,16 @@ HyphenatedWord::HyphenatedWord(const OUString &rWord, sal_Int16 nLang, sal_Int16
nHyphenationPos (nHPos),
nLanguage (nLang)
{
- String aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
- DBG_ASSERT( 1 == aSingleQuote.Len(), "unexpectend length of quotation mark" );
- if (aSingleQuote.Len())
+ OUString aSingleQuote( GetLocaleDataWrapper( nLanguage ).getQuotationMarkEnd() );
+ DBG_ASSERT( 1 == aSingleQuote.getLength(), "unexpectend length of quotation mark" );
+ if (!aSingleQuote.isEmpty())
{
// ignore typographical apostrophes (which got replaced in original
// word when being checked for hyphenation) in results.
OUString aTmpWord( rWord );
OUString aTmpHyphWord( rHyphWord );
- aTmpWord = aTmpWord .replace( aSingleQuote.GetChar(0), '\'' );
- aTmpHyphWord = aTmpHyphWord.replace( aSingleQuote.GetChar(0), '\'' );
+ aTmpWord = aTmpWord .replace( aSingleQuote[0], '\'' );
+ aTmpHyphWord = aTmpHyphWord.replace( aSingleQuote[0], '\'' );
bIsAltSpelling = aTmpWord != aTmpHyphWord;
}
else