diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 13:04:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 13:04:01 +0200 |
commit | edda154f3eac2508b8aaa7991ad59f3580384b83 (patch) | |
tree | fae3748723ded1aae59e6bb791a084c6fc5dcb6c /svx/inc/sdr | |
parent | 96c4aeb797bef23e42190a0c44aeb43047c936c7 (diff) |
Use unique_ptr for EmptyProperties::mpEmptyItemSet
Change-Id: I167e6ee803ee5c81553e8a5f0d63f2a47195b46a
Diffstat (limited to 'svx/inc/sdr')
-rw-r--r-- | svx/inc/sdr/properties/emptyproperties.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/inc/sdr/properties/emptyproperties.hxx b/svx/inc/sdr/properties/emptyproperties.hxx index dad630be6fe9..2b431ec7b576 100644 --- a/svx/inc/sdr/properties/emptyproperties.hxx +++ b/svx/inc/sdr/properties/emptyproperties.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_SVX_SDR_PROPERTIES_EMPTYPROPERTIES_HXX #define INCLUDED_SVX_SDR_PROPERTIES_EMPTYPROPERTIES_HXX +#include <sal/config.h> + +#include <memory> + #include <svx/sdr/properties/properties.hxx> @@ -31,7 +35,7 @@ namespace sdr { protected: // the to be used ItemSet - SfxItemSet* mpEmptyItemSet; + std::unique_ptr<SfxItemSet> mpEmptyItemSet; // create a new itemset virtual SfxItemSet* CreateObjectSpecificItemSet(SfxItemPool& rPool) override; @@ -52,9 +56,6 @@ namespace sdr // basic constructor explicit EmptyProperties(SdrObject& rObj); - // destructor - virtual ~EmptyProperties() override; - // Clone() operator, normally just calls the local copy constructor virtual BaseProperties& Clone(SdrObject& rObj) const override; |