diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-17 14:52:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-18 08:35:34 +0200 |
commit | 6d47aa90fcdc72f79d904e3af36ea6de0134d764 (patch) | |
tree | 6582cec1dfc79f77e3c6dd64f49150af227a3588 /sd/source | |
parent | 0d62716f67b6269448eeae1f012f9512b503f390 (diff) |
use unique_ptr for pImpl in sd/
Change-Id: I7098c1dd51fe27e424d612b2503fa842ced77639
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/html/buttonset.cxx | 1 | ||||
-rw-r--r-- | sd/source/filter/html/buttonset.hxx | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx index bee5e416a9b5..2d07d782e135 100644 --- a/sd/source/filter/html/buttonset.cxx +++ b/sd/source/filter/html/buttonset.cxx @@ -267,7 +267,6 @@ ButtonSet::ButtonSet() ButtonSet::~ButtonSet() { - delete mpImpl; } int ButtonSet::getCount() const diff --git a/sd/source/filter/html/buttonset.hxx b/sd/source/filter/html/buttonset.hxx index 8dc230b9e752..3342c17b4aa1 100644 --- a/sd/source/filter/html/buttonset.hxx +++ b/sd/source/filter/html/buttonset.hxx @@ -24,6 +24,7 @@ #include <rtl/ustring.hxx> #include <vector> +#include <memory> class Image; class ButtonSetImpl; @@ -40,7 +41,7 @@ public: bool exportButton( int nSet, const OUString& rPath, const OUString& rName ); private: - ButtonSetImpl* mpImpl; + std::unique_ptr<ButtonSetImpl> mpImpl; }; #endif // INCLUDED_SD_SOURCE_FILTER_HTML_BUTTONSET_HXX |