summaryrefslogtreecommitdiff
path: root/hwpfilter/source/attributes.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-17 15:40:14 +0200
committerNoel Grandin <noel@peralex.com>2015-11-18 08:35:35 +0200
commit21c5ff1287c05e24d5cc2b6100866e6992ff8381 (patch)
tree556ccbda5428414aa00d5aa1d437f245dc1cec20 /hwpfilter/source/attributes.cxx
parent2e9277c05034c157d640c289d59499be9d1ca382 (diff)
use unique_ptr for pImpl in extensions,hwpfilter/
Change-Id: I476ba7ec2ebee8c61bf9bb6ff0309cc40affb275
Diffstat (limited to 'hwpfilter/source/attributes.cxx')
-rw-r--r--hwpfilter/source/attributes.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/hwpfilter/source/attributes.cxx b/hwpfilter/source/attributes.cxx
index 4c91b72fc91d..c3683138f14c 100644
--- a/hwpfilter/source/attributes.cxx
+++ b/hwpfilter/source/attributes.cxx
@@ -52,10 +52,10 @@ sal_Int16 SAL_CALL AttributeListImpl::getLength() throw (RuntimeException, std::
}
-AttributeListImpl::AttributeListImpl( const AttributeListImpl &r ) :
-cppu::WeakImplHelper<css::xml::sax::XAttributeList>( r )
+AttributeListImpl::AttributeListImpl( const AttributeListImpl &r )
+ : cppu::WeakImplHelper<css::xml::sax::XAttributeList>( r ),
+ m_pImpl( new AttributeListImpl_impl )
{
- m_pImpl = new AttributeListImpl_impl;
*m_pImpl = *(r.m_pImpl);
}
@@ -125,14 +125,13 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtime
AttributeListImpl::AttributeListImpl()
+ : m_pImpl( new AttributeListImpl_impl )
{
- m_pImpl = new AttributeListImpl_impl;
}
AttributeListImpl::~AttributeListImpl()
{
- delete m_pImpl;
}