summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpbody.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-26 13:54:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-26 13:55:36 +0200
commit5897e103b64db369fe62f64f32267018fdb70f52 (patch)
treeae78937d21124278e7cdf4618abd70e9589bb871 /xmloff/source/draw/ximpbody.cxx
parentba257d74588335f5989a2fa553a7441b7c89e600 (diff)
loplugin:stringconstant: handle OUString+=OUString(literal)
Change-Id: I44c30ef19661d3274a4131dd05a5c786263fae59
Diffstat (limited to 'xmloff/source/draw/ximpbody.cxx')
-rw-r--r--xmloff/source/draw/ximpbody.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/draw/ximpbody.cxx b/xmloff/source/draw/ximpbody.cxx
index c1f8f0824faa..266135be6276 100644
--- a/xmloff/source/draw/ximpbody.cxx
+++ b/xmloff/source/draw/ximpbody.cxx
@@ -193,9 +193,8 @@ SdXMLDrawPageContext::SdXMLDrawPageContext( SdXMLImport& rImport,
OUString aFileName( maHREF.copy( 0, nIndex ) );
OUString aBookmarkName( maHREF.copy( nIndex+1 ) );
- maHREF = GetImport().GetAbsoluteReference( aFileName );
- maHREF += OUString(static_cast<sal_Unicode>('#'));
- maHREF += aBookmarkName;
+ maHREF = GetImport().GetAbsoluteReference( aFileName ) + "#"
+ + aBookmarkName;
}
xProps->setPropertyValue("BookmarkURL", uno::makeAny( maHREF ) );