summaryrefslogtreecommitdiff
path: root/xmloff/source/transform
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 18:25:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-02 08:47:24 +0200
commit366eaa1a383a0f5f3f755f2b6a739d3d9c5b8343 (patch)
tree0b7b4876a3e35d40a75818593214df7717e5f3b5 /xmloff/source/transform
parent91c836acea76cffb0e2d5df0d15fc94d84bfdc5a (diff)
loplugin:stringadd in writerfilter..xmloff
Change-Id: Ib5292f4c702cc1e2994c736250a93e6fb18d1a20 Reviewed-on: https://gerrit.libreoffice.org/79988 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r--xmloff/source/transform/OOo2Oasis.cxx3
-rw-r--r--xmloff/source/transform/TransformerBase.cxx7
2 files changed, 3 insertions, 7 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx
index e5060c3846cd..780e0f604632 100644
--- a/xmloff/source/transform/OOo2Oasis.cxx
+++ b/xmloff/source/transform/OOo2Oasis.cxx
@@ -1149,8 +1149,7 @@ void XMLDocumentTransformerContext_Impl::StartElement(
pMutableAttrList = new XMLMutableAttributeList( xAttrList );
xAttrList = pMutableAttrList;
- OUString sMime("application/vnd.oasis.opendocument.");
- sMime += rValue;
+ OUString sMime = "application/vnd.oasis.opendocument." + rValue;
pMutableAttrList->SetValueByIndex( i, sMime );
OUString aNewAttrQName( GetTransformer().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_OFFICE, ::xmloff::token::GetXMLToken( XML_MIMETYPE ) ) );
pMutableAttrList->RenameAttributeByIndex(i, aNewAttrQName );
diff --git a/xmloff/source/transform/TransformerBase.cxx b/xmloff/source/transform/TransformerBase.cxx
index db3cbfe629db..2a838cbfc97b 100644
--- a/xmloff/source/transform/TransformerBase.cxx
+++ b/xmloff/source/transform/TransformerBase.cxx
@@ -840,8 +840,7 @@ XMLMutableAttributeList *XMLTransformerBase::ProcessAttrList(
break;
case XML_ATACTION_SHAPEID:
{
- OUString sNewValue( "shape" );
- sNewValue += rAttrValue;
+ OUString sNewValue = "shape" + rAttrValue;
pMutableAttrList->SetValueByIndex( i, sNewValue );
break;
}
@@ -1276,9 +1275,7 @@ bool XMLTransformerBase::ConvertURIToOASIS( OUString& rURI,
if( bRel )
{
- OUString sTmp( m_aExtPathPrefix );
- sTmp += rURI;
- rURI = sTmp;
+ rURI = m_aExtPathPrefix + rURI;
bRet = true;
}
}