summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/MutableAttrList.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-18 15:06:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-19 07:35:28 +0100
commit75894d5c6afd3f4d206b50c529d83db9c1f8232d (patch)
tree3fd3caaf10fbdf04c278e1dd4b8e85bdbc3b0aad /xmloff/source/transform/MutableAttrList.cxx
parent1e8e8327847c18e6dac09615d7d905298f608e8c (diff)
loplugin:refcounting in xmloff
Change-Id: I739aa5914359edc4fdfdc341b09718ddbb7c04e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111121 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform/MutableAttrList.cxx')
-rw-r--r--xmloff/source/transform/MutableAttrList.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/transform/MutableAttrList.cxx b/xmloff/source/transform/MutableAttrList.cxx
index 622abc3fa168..abf19c69a2bc 100644
--- a/xmloff/source/transform/MutableAttrList.cxx
+++ b/xmloff/source/transform/MutableAttrList.cxx
@@ -34,7 +34,7 @@ SvXMLAttributeList *XMLMutableAttributeList::GetMutableAttrList()
m_xAttrList = m_pMutableAttrList;
}
- return m_pMutableAttrList;
+ return m_pMutableAttrList.get();
}
XMLMutableAttributeList::XMLMutableAttributeList() :
@@ -45,8 +45,7 @@ XMLMutableAttributeList::XMLMutableAttributeList() :
XMLMutableAttributeList::XMLMutableAttributeList( const Reference<
XAttributeList> & rAttrList, bool bClone ) :
- m_xAttrList( rAttrList.is() ? rAttrList : new SvXMLAttributeList ),
- m_pMutableAttrList( nullptr )
+ m_xAttrList( rAttrList.is() ? rAttrList : new SvXMLAttributeList )
{
if( bClone )
GetMutableAttrList();