summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 16:10:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 18:36:42 +0200
commit0eb51b92e0c528b2b5c1f0d8011b70c808c81605 (patch)
tree9088fad207a4b96c0abc9e99d1b45c921b0da6ac
parentba535d8cbda1026823ce9796c20f97b7367d581f (diff)
loplugin:moveparam in package
Change-Id: I681a6b0b30aeff9a51e36050629d8a617797a21f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123419 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--package/source/manifest/ManifestImport.cxx2
-rw-r--r--package/source/manifest/ManifestImport.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/package/source/manifest/ManifestImport.cxx b/package/source/manifest/ManifestImport.cxx
index 3cab72abacfe..0a1c4ad5bb1d 100644
--- a/package/source/manifest/ManifestImport.cxx
+++ b/package/source/manifest/ManifestImport.cxx
@@ -560,7 +560,7 @@ OUString ManifestImport::PushNameAndNamespaces( const OUString& aName, const uno
if ( !aConvertedName.getLength() )
aConvertedName = ConvertName( aName );
- aStack.emplace_back( aConvertedName, aNamespaces );
+ aStack.emplace_back( aConvertedName, std::move(aNamespaces) );
for (const std::pair<OUString,OUString> & rAttribsStr : aAttribsStrs) {
// convert the attribute names on filling
diff --git a/package/source/manifest/ManifestImport.hxx b/package/source/manifest/ManifestImport.hxx
index 08ee251f6e81..1a2b4de11a6d 100644
--- a/package/source/manifest/ManifestImport.hxx
+++ b/package/source/manifest/ManifestImport.hxx
@@ -41,9 +41,9 @@ struct ManifestScopeEntry
StringHashMap m_aNamespaces;
bool m_bValid;
- ManifestScopeEntry( const OUString& aConvertedName, const StringHashMap& aNamespaces )
+ ManifestScopeEntry( const OUString& aConvertedName, StringHashMap&& aNamespaces )
: m_aConvertedName( aConvertedName )
- , m_aNamespaces( aNamespaces )
+ , m_aNamespaces( std::move(aNamespaces) )
, m_bValid( true )
{}
};