diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-08 10:06:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-08 14:05:58 +0100 |
commit | 832e5aadbff006ec24959162c29756fe2b1982be (patch) | |
tree | 9c258056fec29b0defaf012f8cb0945efed2b2e0 /sw/source/filter/ascii | |
parent | c811c0706f0ecf3400e8fcc510ca283dd593237f (diff) |
Related: fdo#38838 remove UniString::SearchAndReplaceAll
Change-Id: I093c95b8700b628375d69293022f7d4b8da2af9c
Diffstat (limited to 'sw/source/filter/ascii')
-rw-r--r-- | sw/source/filter/ascii/ascatr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx index 87a4000c8a28..17f798352263 100644 --- a/sw/source/filter/ascii/ascatr.cxx +++ b/sw/source/filter/ascii/ascatr.cxx @@ -165,9 +165,9 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode ) } } - String aStr( rNd.GetTxt() ); + OUString aStr( rNd.GetTxt() ); if( rWrt.bASCII_ParaAsBlanc ) - aStr.SearchAndReplaceAll( 0x0A, ' ' ); + aStr = aStr.replace(0x0A, ' '); const bool bExportSoftHyphens = RTL_TEXTENCODING_UCS2 == rWrt.GetAsciiOptions().GetCharSet() || RTL_TEXTENCODING_UTF8 == rWrt.GetAsciiOptions().GetCharSet(); @@ -180,7 +180,7 @@ static Writer& OutASC_SwTxtNode( Writer& rWrt, SwCntntNode& rNode ) if( !aAttrIter.OutAttr( nStrPos )) { - String aOutStr( aStr.Copy( nStrPos, nNextAttr - nStrPos ) ); + String aOutStr( aStr.copy( nStrPos, nNextAttr - nStrPos ) ); if ( !bExportSoftHyphens ) aOutStr = comphelper::string::remove(aOutStr, CHAR_SOFTHYPHEN); |