From 75894d5c6afd3f4d206b50c529d83db9c1f8232d Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 18 Feb 2021 15:06:44 +0200 Subject: loplugin:refcounting in xmloff Change-Id: I739aa5914359edc4fdfdc341b09718ddbb7c04e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111121 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/transform/DocumentTContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source/transform/DocumentTContext.cxx') diff --git a/xmloff/source/transform/DocumentTContext.cxx b/xmloff/source/transform/DocumentTContext.cxx index f75a00c94ed8..894146897af7 100644 --- a/xmloff/source/transform/DocumentTContext.cxx +++ b/xmloff/source/transform/DocumentTContext.cxx @@ -51,7 +51,7 @@ void XMLDocumentTransformerContext::StartElement( const Reference< XAttributeLis GetTransformer().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_OFFICE, GetXMLToken(XML_CLASS ) ) ); - XMLMutableAttributeList *pMutableAttrList = nullptr; + rtl::Reference pMutableAttrList; sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0; for( sal_Int16 i=0; i < nAttrCount; i++ ) { -- cgit