[Libreoffice-commits] core.git: writerfilter/source

Miklos Vajna vmiklos at collabora.co.uk
Wed May 13 05:28:57 PDT 2015


 writerfilter/source/dmapper/PropertyIds.cxx |    3 +--
 writerfilter/source/dmapper/PropertyIds.hxx |    3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 926392de616c4ce32b82f7cc002655bc765b4aae
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed May 13 09:53:42 2015 +0200

    PropertyNameSupplier: use std::unique_ptr<>
    
    Change-Id: I1e4cf3241bee20677f61ea334efc3aa4e490a016

diff --git a/writerfilter/source/dmapper/PropertyIds.cxx b/writerfilter/source/dmapper/PropertyIds.cxx
index 53d101c..5506322 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 618d02d..51b2732 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();


More information about the Libreoffice-commits mailing list