From d1539f91810cb4b426f3c823c25ab6ac25f6283e Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 4 Dec 2013 15:22:00 +0100 Subject: [PATCH] sfx2: SfxItemPtrMap is used only in shell.cxx Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98 --- include/sfx2/dispatch.hxx | 12 ------------ sfx2/source/control/shell.cxx | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index cb48a841cd07..49e4c1d58711 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -27,7 +27,6 @@ #include #include -#include #include class SfxSlotServer; @@ -63,17 +62,6 @@ namespace com //========================================================================= -// Maps the Which() field to a pointer to a SfxPoolItem -class SfxItemPtrMap : public std::map -{ -public: - ~SfxItemPtrMap() - { - for(iterator it = begin(); it != end(); ++it) - delete it->second; - } -}; - class SFX2_DLLPUBLIC SfxDispatcher { boost::scoped_ptr pImp; 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 #include +#include + + +// Maps the Which() field to a pointer to a SfxPoolItem +class SfxItemPtrMap : public std::map +{ +public: + ~SfxItemPtrMap() + { + for(iterator it = begin(); it != end(); ++it) + delete it->second; + } +}; + //==================================================================== DBG_NAME(SfxShell)