sfx2: SfxItemPtrMap is used only in shell.cxx

Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98
This commit is contained in:
Michael Stahl 2013-12-04 15:22:00 +01:00
parent 5e4c26918a
commit d1539f9181
2 changed files with 14 additions and 12 deletions

View File

@ -27,7 +27,6 @@
#include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx>
#include <map>
#include <boost/scoped_ptr.hpp>
class SfxSlotServer;
@ -63,17 +62,6 @@ namespace com
//=========================================================================
// 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;
}
};
class SFX2_DLLPUBLIC SfxDispatcher
{
boost::scoped_ptr<SfxDispatcher_Impl> pImp;

View File

@ -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)