Kaydet (Commit) a933e01a authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: use std::unique_ptr<> in SettingsTable

Change-Id: I0202b18301b4b4a7c82c840df1397a5cbdd695b1
üst cd6c9aef
...@@ -131,7 +131,6 @@ SettingsTable::SettingsTable(DomainMapper& rDMapper, const uno::Reference< lang: ...@@ -131,7 +131,6 @@ SettingsTable::SettingsTable(DomainMapper& rDMapper, const uno::Reference< lang:
SettingsTable::~SettingsTable() SettingsTable::~SettingsTable()
{ {
delete m_pImpl;
} }
void SettingsTable::lcl_attribute(Id nName, Value & val) void SettingsTable::lcl_attribute(Id nName, Value & val)
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XTextDocument.hpp>
#include <map> #include <map>
#include <memory>
namespace com{ namespace sun{ namespace star{ namespace com{ namespace sun{ namespace star{
namespace lang{ namespace lang{
...@@ -41,7 +42,7 @@ struct SettingsTable_Impl; ...@@ -41,7 +42,7 @@ struct SettingsTable_Impl;
class SettingsTable : public LoggedProperties, public LoggedTable class SettingsTable : public LoggedProperties, public LoggedTable
{ {
SettingsTable_Impl *m_pImpl; std::unique_ptr<SettingsTable_Impl> m_pImpl;
public: public:
SettingsTable(DomainMapper& rDMapper, const css::uno::Reference<css::lang::XMultiServiceFactory>& xTextFactory); SettingsTable(DomainMapper& rDMapper, const css::uno::Reference<css::lang::XMultiServiceFactory>& xTextFactory);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment