diff options
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) |