diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 5 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaheaderfooter.cxx | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 68f241eaf240..05fe2f786455 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -302,7 +302,7 @@ void SwWW8ImplReader::ReadEmbeddedData(SvStream& rStrm, SwDocShell* pDocShell, s if( !xLongName.get() && xShortName.get() ) { xLongName.reset( new OUString ); - *xLongName = xLongName->concat(*xShortName); + *xLongName += *xShortName; } else if( !xLongName.get() && xTextMark.get() ) xLongName.reset( new OUString ); @@ -313,8 +313,7 @@ void SwWW8ImplReader::ReadEmbeddedData(SvStream& rStrm, SwDocShell* pDocShell, s { if (xLongName->isEmpty()) *xTextMark = xTextMark->replace('!', '.'); - *xLongName = xLongName->concat("#"); - *xLongName = xLongName->concat(*xTextMark); + *xLongName += "#" + *xTextMark; } hlStr.hLinkAddr = *xLongName; } diff --git a/sw/source/ui/vba/vbaheaderfooter.cxx b/sw/source/ui/vba/vbaheaderfooter.cxx index 61548d62d521..21bd2debe849 100644 --- a/sw/source/ui/vba/vbaheaderfooter.cxx +++ b/sw/source/ui/vba/vbaheaderfooter.cxx @@ -62,7 +62,7 @@ uno::Reference< word::XRange > SAL_CALL SwVbaHeaderFooter::getRange() } if( mnIndex == word::WdHeaderFooterIndex::wdHeaderFooterEvenPages ) { - sPropsNameText = sPropsNameText.concat( "Left" ); + sPropsNameText += "Left"; } uno::Reference< text::XText > xText( mxPageStyleProps->getPropertyValue( sPropsNameText ), uno::UNO_QUERY_THROW ); |