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

Miklos Vajna vmiklos at collabora.co.uk
Thu Jul 23 00:11:22 PDT 2015


 writerfilter/source/dmapper/FontTable.cxx |    1 -
 writerfilter/source/dmapper/FontTable.hxx |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 62824a22161501a62b950ed461dc5839fa5ea942
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jul 23 09:09:49 2015 +0200

    writerfilter: use std::unique_ptr<> in FontTable
    
    Change-Id: I8dce4e71c53526605d83710012133784a5cbd7ba

diff --git a/writerfilter/source/dmapper/FontTable.cxx b/writerfilter/source/dmapper/FontTable.cxx
index 11a176b..fe714c4 100644
--- a/writerfilter/source/dmapper/FontTable.cxx
+++ b/writerfilter/source/dmapper/FontTable.cxx
@@ -49,7 +49,6 @@ FontTable::FontTable()
 
 FontTable::~FontTable()
 {
-    delete m_pImpl;
 }
 
 void FontTable::lcl_attribute(Id Name, Value & val)
diff --git a/writerfilter/source/dmapper/FontTable.hxx b/writerfilter/source/dmapper/FontTable.hxx
index 9c6560e..52002ca 100644
--- a/writerfilter/source/dmapper/FontTable.hxx
+++ b/writerfilter/source/dmapper/FontTable.hxx
@@ -56,7 +56,7 @@ struct FontEntry
 class FontTable : public LoggedProperties, public LoggedTable
     /*,public BinaryObj*/, public LoggedStream
 {
-    FontTable_Impl   *m_pImpl;
+    std::unique_ptr<FontTable_Impl> m_pImpl;
 
  public:
     FontTable();


More information about the Libreoffice-commits mailing list