summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-17 14:52:09 +0200
committerNoel Grandin <noel@peralex.com>2015-11-18 08:35:34 +0200
commit6d47aa90fcdc72f79d904e3af36ea6de0134d764 (patch)
tree6582cec1dfc79f77e3c6dd64f49150af227a3588 /sd
parent0d62716f67b6269448eeae1f012f9512b503f390 (diff)
use unique_ptr for pImpl in sd/
Change-Id: I7098c1dd51fe27e424d612b2503fa842ced77639
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/html/buttonset.cxx1
-rw-r--r--sd/source/filter/html/buttonset.hxx3
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