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

Miklos Vajna vmiklos at collabora.co.uk
Fri Jul 24 00:56:02 PDT 2015


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

New commits:
commit 724249cebb5793fb3d46e011269cabb03e3aa1b9
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Jul 24 09:54:19 2015 +0200

    writerfilter: use std::shared_ptr<> in ThemeTable
    
    Change-Id: I9d632ed036b1d94c29adfc79df4c920791b0c0fa

diff --git a/writerfilter/source/dmapper/ThemeTable.cxx b/writerfilter/source/dmapper/ThemeTable.cxx
index 9e4d8f7..657753c 100644
--- a/writerfilter/source/dmapper/ThemeTable.cxx
+++ b/writerfilter/source/dmapper/ThemeTable.cxx
@@ -52,7 +52,6 @@ ThemeTable::ThemeTable()
 
 ThemeTable::~ThemeTable()
 {
-    delete m_pImpl;
 }
 
 void ThemeTable::lcl_attribute(Id Name, Value & val)
diff --git a/writerfilter/source/dmapper/ThemeTable.hxx b/writerfilter/source/dmapper/ThemeTable.hxx
index 34a4aa4..0bc0a47 100644
--- a/writerfilter/source/dmapper/ThemeTable.hxx
+++ b/writerfilter/source/dmapper/ThemeTable.hxx
@@ -25,6 +25,7 @@
 #include <com/sun/star/lang/XComponent.hpp>
 #include <i18nlangtag/languagetag.hxx>
 #include <map>
+#include <memory>
 
 namespace writerfilter {
 namespace dmapper
@@ -34,7 +35,7 @@ struct ThemeTable_Impl;
 
 class ThemeTable : public LoggedProperties, public LoggedTable
 {
-    ThemeTable_Impl *m_pImpl;
+    std::unique_ptr<ThemeTable_Impl> m_pImpl;
 
 public:
     ThemeTable();


More information about the Libreoffice-commits mailing list