summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8atr.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-08 10:06:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-08 14:05:58 +0100
commit832e5aadbff006ec24959162c29756fe2b1982be (patch)
tree9c258056fec29b0defaf012f8cb0945efed2b2e0 /sw/source/filter/ww8/ww8atr.cxx
parentc811c0706f0ecf3400e8fcc510ca283dd593237f (diff)
Related: fdo#38838 remove UniString::SearchAndReplaceAll
Change-Id: I093c95b8700b628375d69293022f7d4b8da2af9c
Diffstat (limited to 'sw/source/filter/ww8/ww8atr.cxx')
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index dc3117a2dc0d..2d2c48ace377 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -1734,12 +1734,10 @@ static void InsertSpecialChar( WW8Export& rWrt, sal_uInt8 c,
static String lcl_GetExpandedField(const SwField &rFld)
{
- String sRet(rFld.ExpandField(true));
+ OUString sRet(rFld.ExpandField(true));
//replace LF 0x0A with VT 0x0B
- sRet.SearchAndReplaceAll(0x0A, 0x0B);
-
- return sRet;
+ return sRet.replace(0x0A, 0x0B);
}
WW8_WrPlcFld* WW8Export::CurrentFieldPlc() const
@@ -2405,10 +2403,10 @@ OUString FieldString(ww::eField eIndex)
void WW8AttributeOutput::HiddenField( const SwField& rFld )
{
- String sExpand(rFld.GetPar2());
+ OUString sExpand(rFld.GetPar2());
//replace LF 0x0A with VT 0x0B
- sExpand.SearchAndReplaceAll(0x0A, 0x0B);
+ sExpand = sExpand.replace(0x0A, 0x0B);
m_rWW8Export.pChpPlc->AppendFkpEntry(m_rWW8Export.Strm().Tell());
if (m_rWW8Export.IsUnicode())
{