diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 09:47:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 09:26:26 +0000 |
commit | 352e036ada79bee79b0b52352cab4b05695b1abf (patch) | |
tree | cc6f80c827672e636a4db0e66d68f1edffabb4f7 /svl/source/items | |
parent | d0cbdac23ba545091eb9fac8b114cfc20df74ebf (diff) |
new loplugin: useuniqueptr: svl..svtools
Change-Id: Ia4d5b37ee3cf67318e3cc01525e4b733af60d038
Reviewed-on: https://gerrit.libreoffice.org/33251
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/items')
-rw-r--r-- | svl/source/items/stylepool.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx index 0028b3552768..2fbee928d367 100644 --- a/svl/source/items/stylepool.cxx +++ b/svl/source/items/stylepool.cxx @@ -347,7 +347,7 @@ class StylePoolImpl private: std::map< const SfxItemSet*, Node > maRoot; // #i86923# - SfxItemSet* mpIgnorableItems; + std::unique_ptr<SfxItemSet> mpIgnorableItems; public: // #i86923# explicit StylePoolImpl( SfxItemSet* pIgnorableItems ) @@ -364,7 +364,6 @@ public: ~StylePoolImpl() { - delete mpIgnorableItems; } std::shared_ptr<SfxItemSet> insertItemSet( const SfxItemSet& rSet ); |