summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2016-09-09 14:55:12 +0200
committerDavid Tardon <dtardon@redhat.com>2016-09-09 16:16:45 +0200
commit8e11d353665242fc90ef485ff8f67a44206b6393 (patch)
tree1da502d977387bc53eeb538fcb1579c7ca16cd30 /editeng
parent8d458a24f79ed9ba321daa3db283eb22dbd7c27f (diff)
use std::unique_ptr
Change-Id: I8ba37267e8a7058ade54783ea0e117a8f8816c45
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/xmlcnitm.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/items/xmlcnitm.cxx b/editeng/source/items/xmlcnitm.cxx
index c1e397fe06d8..520b3b1fea0e 100644
--- a/editeng/source/items/xmlcnitm.cxx
+++ b/editeng/source/items/xmlcnitm.cxx
@@ -20,6 +20,7 @@
#include <com/sun/star/xml/AttributeData.hpp>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <o3tl/any.hxx>
+#include <o3tl/make_unique.hxx>
#include <xmloff/xmlcnimp.hxx>
#include <xmloff/unoatrcn.hxx>
#include <editeng/xmlcnitm.hxx>
@@ -73,7 +74,7 @@ sal_uInt16 SvXMLAttrContainerItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/
bool SvXMLAttrContainerItem::QueryValue( css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
{
Reference<XNameContainer> xContainer =
- new SvUnoAttributeContainer( new SvXMLAttrContainerData( *pImpl.get() ) );
+ new SvUnoAttributeContainer( o3tl::make_unique<SvXMLAttrContainerData>( *pImpl.get() ) );
rVal <<= xContainer;
return true;