diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 12:32:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-13 12:32:02 +0200 |
commit | 96c4aeb797bef23e42190a0c44aeb43047c936c7 (patch) | |
tree | 393c944231bab92047621274e0c1076d36024b25 /include/svx/sdr/properties | |
parent | ffc2e936c6a9f3fd597b64b88785edb0f78d7564 (diff) |
Use unique_ptr for DefaultProperties::mpItemSet
Change-Id: Ia5272aac6825a9f571ae0ed144475eb291426894
Diffstat (limited to 'include/svx/sdr/properties')
-rw-r--r-- | include/svx/sdr/properties/defaultproperties.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svx/sdr/properties/defaultproperties.hxx b/include/svx/sdr/properties/defaultproperties.hxx index 5864f0e75f00..8d2b90009353 100644 --- a/include/svx/sdr/properties/defaultproperties.hxx +++ b/include/svx/sdr/properties/defaultproperties.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_SVX_SDR_PROPERTIES_DEFAULTPROPERTIES_HXX #define INCLUDED_SVX_SDR_PROPERTIES_DEFAULTPROPERTIES_HXX +#include <sal/config.h> + +#include <memory> + #include <svx/sdr/properties/properties.hxx> #include <svx/svxdllapi.h> @@ -33,7 +37,7 @@ namespace sdr { protected: // the to be used ItemSet - SfxItemSet* mpItemSet; + std::unique_ptr<SfxItemSet> mpItemSet; // create a new itemset virtual SfxItemSet* CreateObjectSpecificItemSet(SfxItemPool& rPool) override; |