diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-12-04 15:22:00 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-04 15:39:59 +0100 |
commit | d1539f91810cb4b426f3c823c25ab6ac25f6283e (patch) | |
tree | e88eebfff8bbb7263e0b6e488c0c1dc93262d303 /sfx2/source | |
parent | 5e4c26918a0c8130515ee7af0cf2cd2dfe42534d (diff) |
sfx2: SfxItemPtrMap is used only in shell.cxx
Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/shell.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index eaed943daa84..2b9c7f4e4673 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -44,6 +44,20 @@ #include <sfx2/msgpool.hxx> #include <sfx2/sidebar/ContextChangeBroadcaster.hxx> +#include <map> + + +// Maps the Which() field to a pointer to a SfxPoolItem +class SfxItemPtrMap : public std::map<sal_uInt16, SfxPoolItem*> +{ +public: + ~SfxItemPtrMap() + { + for(iterator it = begin(); it != end(); ++it) + delete it->second; + } +}; + //==================================================================== DBG_NAME(SfxShell) |