Kaydet (Commit) 7469d755 authored tarafından David Tardon's avatar David Tardon

use std::unique_ptr

Change-Id: I39475538ed838e4210e256d85c6dd46232f8dc50
üst bbb017f9
......@@ -25,6 +25,7 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
#include <com/sun/star/ucb/XAnyCompare.hpp>
#include <memory>
#include <set>
namespace com { namespace sun { namespace star { namespace container {
......@@ -42,7 +43,7 @@ class XMLOFF_DLLPUBLIC XMLTextListAutoStylePool
OUString sPrefix;
XMLTextListAutoStylePool_Impl *pPool;
std::unique_ptr<XMLTextListAutoStylePool_Impl> pPool;
XMLTextListAutoStylePoolNames_Impl m_aNames;
sal_uInt32 nName;
......
......@@ -157,7 +157,6 @@ XMLTextListAutoStylePool::~XMLTextListAutoStylePool()
{
// The XMLTextListAutoStylePoolEntry_Impl object in the pool need delete explicitly in dtor.
pPool->DeleteAndDestroyAll();
delete pPool;
}
void XMLTextListAutoStylePool::RegisterName( const OUString& rName )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment