diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-01 18:25:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-02 08:47:24 +0200 |
commit | 366eaa1a383a0f5f3f755f2b6a739d3d9c5b8343 (patch) | |
tree | 0b7b4876a3e35d40a75818593214df7717e5f3b5 /xmlscript | |
parent | 91c836acea76cffb0e2d5df0d15fc94d84bfdc5a (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 'xmlscript')
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_export.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx index 6101ec60ecfd..85b4c59a8a70 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx @@ -119,8 +119,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / } // ooo/script:libraries element - OUString aLibContElementName( aPrefix ); - aLibContElementName += ":libraries"; + OUString aLibContElementName = aPrefix + ":libraries"; XMLElement* pLibContElement = new XMLElement( aLibContElementName ); Reference< xml::sax::XAttributeList > xLibContAttribs( pLibContElement ); @@ -163,8 +162,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / if ( xLibContainer->isLibraryLink( rLibName ) ) { // ooo/script:library-linked element - OUString aLibElementName( aPrefix ); - aLibElementName += ":library-linked"; + OUString aLibElementName = aPrefix + ":library-linked"; XMLElement* pLibElement = new XMLElement( aLibElementName ); Reference< xml::sax::XAttributeList > xLibAttribs = static_cast< xml::sax::XAttributeList* >( pLibElement ); @@ -198,8 +196,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / else { // ooo/script:library-embedded element - OUString aLibElementName( aPrefix ); - aLibElementName += ":library-embedded"; + OUString aLibElementName = aPrefix + ":library-embedded"; XMLElement* pLibElement = new XMLElement( aLibElementName ); Reference< xml::sax::XAttributeList > xLibAttribs = static_cast< xml::sax::XAttributeList* >( pLibElement ); @@ -235,8 +232,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / if ( xLib->hasByName( rModName ) ) { // ooo/script:module element - OUString aModElementName( aPrefix ); - aModElementName += ":module"; + OUString aModElementName = aPrefix + ":module"; XMLElement* pModElement = new XMLElement( aModElementName ); Reference< xml::sax::XAttributeList > xModAttribs = static_cast< xml::sax::XAttributeList* >( pModElement ); @@ -248,8 +244,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / m_xHandler->startElement( aModElementName, xModAttribs ); // ooo/script:source-code element - OUString aSourceElementName( aPrefix ); - aSourceElementName += ":source-code"; + OUString aSourceElementName = aPrefix + ":source-code"; XMLElement* pSourceElement = new XMLElement( aSourceElementName ); Reference< xml::sax::XAttributeList > xSourceAttribs = static_cast< xml::sax::XAttributeList* >( pSourceElement ); |