Kaydet (Commit) d1539f91 authored tarafından Michael Stahl's avatar Michael Stahl

sfx2: SfxItemPtrMap is used only in shell.cxx

Change-Id: I9f76a114fcdf761ddaaf40666e4330d20ca72b98
üst 5e4c2691
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <sfx2/bindings.hxx> #include <sfx2/bindings.hxx>
#include <sfx2/viewfrm.hxx> #include <sfx2/viewfrm.hxx>
#include <map>
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
class SfxSlotServer; class SfxSlotServer;
...@@ -63,17 +62,6 @@ namespace com ...@@ -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 class SFX2_DLLPUBLIC SfxDispatcher
{ {
boost::scoped_ptr<SfxDispatcher_Impl> pImp; boost::scoped_ptr<SfxDispatcher_Impl> pImp;
......
...@@ -44,6 +44,20 @@ ...@@ -44,6 +44,20 @@
#include <sfx2/msgpool.hxx> #include <sfx2/msgpool.hxx>
#include <sfx2/sidebar/ContextChangeBroadcaster.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) DBG_NAME(SfxShell)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment