summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-18 08:05:42 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-18 08:06:21 +0100
commitf52cf060efaf499f9b13427141e7e3f0718713e1 (patch)
tree86171576bcd88bff2a61a9dc3d32b1d45cf432eb /sw
parent48916c9b8c1363a37bf511626326ee6dc150975c (diff)
DocxAttributeOutput::TableBackgrounds: use unique_ptr
Change-Id: I312d3d94c54f9a8537e2d22d347a75bd40360b80
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 64d9199a3e5d..0382b015a8f5 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3384,7 +3384,7 @@ void DocxAttributeOutput::TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_
}
else
{
- ::sax_fastparser::FastAttributeList* pAttrList = NULL;
+ std::unique_ptr<sax_fastparser::FastAttributeList> pAttrList;
for( aGrabBagElement = aGrabBag.begin(); aGrabBagElement != aGrabBag.end(); ++aGrabBagElement )
{
@@ -3411,8 +3411,7 @@ void DocxAttributeOutput::TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_
else if( aGrabBagElement->first == "val")
AddToAttrList( pAttrList, FSNS( XML_w, XML_val ), sValue.getStr() );
}
- m_pSerializer->singleElementNS( XML_w, XML_shd,
- XFastAttributeListRef( pAttrList ) );
+ m_pSerializer->singleElementNS( XML_w, XML_shd, XFastAttributeListRef( pAttrList.release() ) );
}
}