diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-18 15:06:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-19 07:35:28 +0100 |
commit | 75894d5c6afd3f4d206b50c529d83db9c1f8232d (patch) | |
tree | 3fd3caaf10fbdf04c278e1dd4b8e85bdbc3b0aad /xmloff/source/transform/ChartPlotAreaOASISTContext.cxx | |
parent | 1e8e8327847c18e6dac09615d7d905298f608e8c (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/ChartPlotAreaOASISTContext.cxx')
-rw-r--r-- | xmloff/source/transform/ChartPlotAreaOASISTContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx b/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx index b14457047411..b8603f62fd59 100644 --- a/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx +++ b/xmloff/source/transform/ChartPlotAreaOASISTContext.cxx @@ -95,7 +95,7 @@ void XMLAxisOASISContext::StartElement( const Reference< xml::sax::XAttributeList >& rAttrList ) { Reference< xml::sax::XAttributeList > xAttrList( rAttrList ); - XMLMutableAttributeList *pMutableAttrList = nullptr; + rtl::Reference<XMLMutableAttributeList> pMutableAttrList; sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; for( sal_Int16 i=0; i < nAttrCount; i++ ) { @@ -157,7 +157,7 @@ void XMLAxisOASISContext::EndElement() m_rCategoriesContext.is() ) { OSL_ENSURE( GetAttrList().is(), "Invalid attribute list" ); - XMLMutableAttributeList * pMutableAttrList = + rtl::Reference<XMLMutableAttributeList> pMutableAttrList = new XMLMutableAttributeList( GetAttrList()); OUString aAttrQName( GetTransformer().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_CHART, GetXMLToken( XML_CLASS ))); |