summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 )
{}
};