diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-07 15:08:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-08 10:03:15 +0200 |
commit | dcb22610230cf5daf735c7053496927cdafc33fe (patch) | |
tree | 8830aaf7c287031977cadc8a1f7e92ce651d1d0c | |
parent | 77d8f7342b8cd6a625989c5d8cba0578951e1017 (diff) |
convert sc/source/filter/rtf/*.cxx from String to OUString
Change-Id: I79ba4ccba049fe4c573e04e931220ad16bab85b9
-rw-r--r-- | sc/source/filter/rtf/eeimpars.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx index dd15ff067b27..fbcdd9dd1113 100644 --- a/sc/source/filter/rtf/eeimpars.cxx +++ b/sc/source/filter/rtf/eeimpars.cxx @@ -264,7 +264,7 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu rSet.Put(*pNumFmt); if ( pFont || pHeight || pWeight || pPosture ) { - String aStr( mpEngine->GetText( pE->aSel ) ); + OUString aStr( mpEngine->GetText( pE->aSel ) ); sal_uInt8 nScriptType = mpDoc->GetStringScriptType( aStr ); const sal_uInt8 nScripts[3] = { SCRIPTTYPE_LATIN, SCRIPTTYPE_ASIAN, SCRIPTTYPE_COMPLEX }; @@ -336,7 +336,7 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu } else { - String aStr; + OUString aStr; if( pE->bEntirePara ) { aStr = mpEngine->GetText( pE->aSel.nStartPara ); @@ -383,8 +383,8 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu // #105460#, #i4180# String cells can't contain tabs or linebreaks // -> replace with spaces - aStr.SearchAndReplaceAll( (sal_Unicode)'\t', (sal_Unicode)' ' ); - aStr.SearchAndReplaceAll( (sal_Unicode)'\n', (sal_Unicode)' ' ); + aStr = aStr.replaceAll( "\t", " " ); + aStr = aStr.replaceAll( "\n", " " ); if (bTextFormat) { |