summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-13 09:53:42 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-13 14:26:40 +0200
commit926392de616c4ce32b82f7cc002655bc765b4aae (patch)
tree8653d6cc505911043b81ec9b91117323e162f318 /writerfilter
parentb1a9498a1415ca42e4d13f3e56daff0ebffc0ccf (diff)
PropertyNameSupplier: use std::unique_ptr<>
Change-Id: I1e4cf3241bee20677f61ea334efc3aa4e490a016
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/PropertyIds.cxx3
-rw-r--r--writerfilter/source/dmapper/PropertyIds.hxx3
2 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx
index 53d101ce9c57..5506322c857c 100644
--- a/writerfilter/source/dmapper/PropertyIds.cxx
+++ b/writerfilter/source/dmapper/PropertyIds.cxx
@@ -34,14 +34,13 @@ struct PropertyNameSupplier_Impl
PropertyNameSupplier::PropertyNameSupplier() :
- m_pImpl(new PropertyNameSupplier_Impl)
+ m_pImpl(new PropertyNameSupplier_Impl())
{
}
PropertyNameSupplier::~PropertyNameSupplier()
{
- delete m_pImpl;
}
diff --git a/writerfilter/source/dmapper/PropertyIds.hxx b/writerfilter/source/dmapper/PropertyIds.hxx
index 618d02dec441..51b27320cc3a 100644
--- a/writerfilter/source/dmapper/PropertyIds.hxx
+++ b/writerfilter/source/dmapper/PropertyIds.hxx
@@ -19,6 +19,7 @@
#ifndef INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX
#define INCLUDED_WRITERFILTER_SOURCE_DMAPPER_PROPERTYIDS_HXX
+#include <memory>
namespace writerfilter {
namespace dmapper{
@@ -380,7 +381,7 @@ enum PropertyIds
struct PropertyNameSupplier_Impl;
class PropertyNameSupplier
{
- PropertyNameSupplier_Impl* m_pImpl;
+ std::unique_ptr<PropertyNameSupplier_Impl> m_pImpl;
public:
PropertyNameSupplier();
~PropertyNameSupplier();