summaryrefslogtreecommitdiff
path: root/svtools/source/misc/langtab.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-20 16:09:10 +0200
committerNoel Grandin <noel@peralex.com>2013-08-22 10:49:31 +0200
commitbe8d43651ee2356de8074b026e48ceb2a83b8ea3 (patch)
tree68455f12d9c5ea23674c82eee9c16a2b05cc53c7 /svtools/source/misc/langtab.cxx
parent7776178974c09790f4c454ad8dc8c89fc25a2a00 (diff)
convert svtools/source/misc/* from String to OUString
Change-Id: I32592a9fb2110ccc3ac7424a18e43238722849ca
Diffstat (limited to 'svtools/source/misc/langtab.cxx')
-rw-r--r--svtools/source/misc/langtab.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/misc/langtab.cxx b/svtools/source/misc/langtab.cxx
index 96a46c7f0adf..7ddf25fcad6c 100644
--- a/svtools/source/misc/langtab.cxx
+++ b/svtools/source/misc/langtab.cxx
@@ -41,7 +41,7 @@ SVT_DLLPUBLIC const OUString ApplyLreOrRleEmbedding( const OUString &rText )
{
const sal_Int32 nLen = rText.getLength();
if (nLen == 0)
- return String();
+ return OUString();
const sal_Unicode cLRE_Embedding = 0x202A; // the start char of an LRE embedding
const sal_Unicode cRLE_Embedding = 0x202B; // the start char of an RLE embedding
@@ -103,11 +103,10 @@ SVT_DLLPUBLIC const OUString ApplyLreOrRleEmbedding( const OUString &rText )
cStart = cRLE_Embedding; // then use RLE embedding
// add embedding start and end chars to the text if the direction could be determined
- String aRes( rText );
+ OUString aRes( rText );
if (bFound)
{
- aRes.Insert( cStart, 0 );
- aRes.Insert( cPopDirectionalFormat );
+ aRes = OUString(cStart) + aRes + OUString(cPopDirectionalFormat);
}
return aRes;