[Libreoffice-commits] core.git: writerfilter/source
Miklos Vajna
vmiklos at collabora.co.uk
Mon Aug 3 23:08:34 PDT 2015
writerfilter/source/dmapper/SettingsTable.cxx | 1 -
writerfilter/source/dmapper/SettingsTable.hxx | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a933e01a54f08132c2d8699f7c6851a8b493d5dc
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Aug 4 08:07:24 2015 +0200
writerfilter: use std::unique_ptr<> in SettingsTable
Change-Id: I0202b18301b4b4a7c82c840df1397a5cbdd695b1
diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx
index dbb2da1..4023d2f 100644
--- a/writerfilter/source/dmapper/SettingsTable.cxx
+++ b/writerfilter/source/dmapper/SettingsTable.cxx
@@ -131,7 +131,6 @@ SettingsTable::SettingsTable(DomainMapper& rDMapper, const uno::Reference< lang:
SettingsTable::~SettingsTable()
{
- delete m_pImpl;
}
void SettingsTable::lcl_attribute(Id nName, Value & val)
diff --git a/writerfilter/source/dmapper/SettingsTable.hxx b/writerfilter/source/dmapper/SettingsTable.hxx
index 16ed8f8..eaa88dc 100644
--- a/writerfilter/source/dmapper/SettingsTable.hxx
+++ b/writerfilter/source/dmapper/SettingsTable.hxx
@@ -24,6 +24,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/text/XTextDocument.hpp>
#include <map>
+#include <memory>
namespace com{ namespace sun{ namespace star{
namespace lang{
@@ -41,7 +42,7 @@ struct SettingsTable_Impl;
class SettingsTable : public LoggedProperties, public LoggedTable
{
- SettingsTable_Impl *m_pImpl;
+ std::unique_ptr<SettingsTable_Impl> m_pImpl;
public:
SettingsTable(DomainMapper& rDMapper, const css::uno::Reference<css::lang::XMultiServiceFactory>& xTextFactory);
More information about the Libreoffice-commits
mailing list