diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-09 18:19:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-10 09:16:22 +0200 |
commit | 0ae13b5df161ec7e12477d5818c70909575c0aa7 (patch) | |
tree | 97383f5772b4fcf411cb40ad0bf69257d847b6f4 /xmloff | |
parent | 1f6851c6f6d6fee67c56dd4e6e6013ba000eaf84 (diff) |
no need to use unique_ptr for NamespaceDefine here
Change-Id: I61ac177fab102c83d72337f608dc5ca8238e7819
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120215
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 48a83f7d1b9f..23e7807c7157 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -2102,8 +2102,8 @@ void SvXMLImportFastNamespaceHandler::addNSDeclAttributes( rtl::Reference < comp { for(const auto& aNamespaceDefine : m_aNamespaceDefines) { - OUString& rPrefix = aNamespaceDefine->m_aPrefix; - OUString& rNamespaceURI = aNamespaceDefine->m_aNamespaceURI; + const OUString& rPrefix = aNamespaceDefine.m_aPrefix; + const OUString& rNamespaceURI = aNamespaceDefine.m_aNamespaceURI; OUString sDecl; if ( rPrefix.isEmpty() ) sDecl = "xmlns"; @@ -2119,10 +2119,10 @@ void SvXMLImportFastNamespaceHandler::registerNamespace( const OUString& rNamesp // Elements with default namespace parsed by FastParser have namespace prefix. // A default namespace needs to be registered with the prefix, to maintain the compatibility. if ( rNamespacePrefix.isEmpty() ) - m_aNamespaceDefines.push_back( std::make_unique<NamespaceDefine>( + m_aNamespaceDefines.push_back( NamespaceDefine( SvXMLImport::getNamespacePrefixFromURI( rNamespaceURI ), rNamespaceURI) ); - m_aNamespaceDefines.push_back( std::make_unique<NamespaceDefine>( + m_aNamespaceDefines.push_back( NamespaceDefine( rNamespacePrefix, rNamespaceURI) ); } |