summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 13:49:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 21:42:16 +0200
commitf9b104abc1185d4f9f3af66f49ec9e39f85a1c36 (patch)
tree972b288a471d03dded89e7d55040eef0ac65d2ee /sw
parent36e92f38c98e5cb21aecf07434df34b3ad75272a (diff)
simplify some OUString::concat usage
Change-Id: Ifa150dc9d694981ffe03c254ea8c3fd820c99795 Reviewed-on: https://gerrit.libreoffice.org/39812 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx5
-rw-r--r--sw/source/ui/vba/vbaheaderfooter.cxx2
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 );