summaryrefslogtreecommitdiff
path: root/package/source/xstor/xstorage.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:11:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 10:51:39 +0200
commitb74c4b7c675883e23bea9fd52682ae89d36539f6 (patch)
tree6d2a521470e37ae99a7977aaa129700151c7f43b /package/source/xstor/xstorage.cxx
parent46c2a3688c9ee7f558f75cbe856c26c4b8849b7e (diff)
loplugin:stringadd in package..sax
Change-Id: I1f8b626ae99bca6e31e7c4aa9c8a1fc016b76e5c Reviewed-on: https://gerrit.libreoffice.org/79890 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/source/xstor/xstorage.cxx')
-rw-r--r--package/source/xstor/xstorage.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 5a375e4bfcfa..6a5b62a6edd2 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1591,8 +1591,7 @@ void OStorage_Impl::RemoveStreamRelInfo( const OUString& aOriginalName )
if ( m_nStorageType == embed::StorageFormats::OFOPXML && m_xRelStorage.is() )
{
- OUString aRelStreamName = aOriginalName;
- aRelStreamName += ".rels";
+ OUString aRelStreamName = aOriginalName + ".rels";
if ( m_xRelStorage->hasByName( aRelStreamName ) )
m_xRelStorage->removeElement( aRelStreamName );
@@ -1654,8 +1653,7 @@ uno::Reference< io::XInputStream > OStorage_Impl::GetRelInfoStreamForName( const
ReadContents();
if ( m_xRelStorage.is() )
{
- OUString aRelStreamName = aName;
- aRelStreamName += ".rels";
+ OUString aRelStreamName = aName + ".rels";
if ( m_xRelStorage->hasByName( aRelStreamName ) )
{
uno::Reference< io::XStream > xStream = m_xRelStorage->openStreamElement( aRelStreamName, embed::ElementModes::READ );