summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-21 14:01:05 +0200
committerNoel Grandin <noel@peralex.com>2014-07-23 13:26:17 +0200
commitf2940a4bfffec5bc34fb03cb32205bff4708a027 (patch)
tree0ffbe5667f0f16dbb8482be79d973c3f486038b7 /svtools
parentdc0af9ef8eb00170997181c2adddbe93315486c7 (diff)
rename SfxItemDesruptor -> SfxItemDisruptor
Change-Id: I7cc9fa3ab6aebc541df4708e29b530f8021b14ba
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/itemdel.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svtools/source/misc/itemdel.cxx b/svtools/source/misc/itemdel.cxx
index b1c771956352..7645089ed084 100644
--- a/svtools/source/misc/itemdel.cxx
+++ b/svtools/source/misc/itemdel.cxx
@@ -28,7 +28,7 @@
#include <svl/itempool.hxx>
-class SfxItemDesruptor_Impl: private boost::noncopyable
+class SfxItemDisruptor_Impl: private boost::noncopyable
{
SfxPoolItem *pItem;
Link aLink;
@@ -37,27 +37,27 @@ private:
DECL_LINK( Delete, void* );
public:
- SfxItemDesruptor_Impl( SfxPoolItem *pItemToDesrupt );
+ SfxItemDisruptor_Impl( SfxPoolItem *pItemToDesrupt );
void LaunchDeleteOnIdle();
- ~SfxItemDesruptor_Impl();
+ ~SfxItemDisruptor_Impl();
};
-SfxItemDesruptor_Impl::SfxItemDesruptor_Impl( SfxPoolItem *pItemToDesrupt ):
+SfxItemDisruptor_Impl::SfxItemDisruptor_Impl( SfxPoolItem *pItemToDesrupt ):
pItem(pItemToDesrupt),
- aLink( LINK(this, SfxItemDesruptor_Impl, Delete) )
+ aLink( LINK(this, SfxItemDisruptor_Impl, Delete) )
{
DBG_ASSERT( 0 == pItem->GetRefCount(), "disrupting pooled item" );
pItem->SetKind( SFX_ITEMS_DELETEONIDLE );
}
-void SfxItemDesruptor_Impl::LaunchDeleteOnIdle()
+void SfxItemDisruptor_Impl::LaunchDeleteOnIdle()
{
// process in Idle
Application::InsertIdleHdl( aLink, 1 );
}
-SfxItemDesruptor_Impl::~SfxItemDesruptor_Impl()
+SfxItemDisruptor_Impl::~SfxItemDisruptor_Impl()
{
// remove from Idle-Handler
@@ -69,7 +69,7 @@ SfxItemDesruptor_Impl::~SfxItemDesruptor_Impl()
delete pItem;
}
-IMPL_LINK_NOARG(SfxItemDesruptor_Impl, Delete)
+IMPL_LINK_NOARG(SfxItemDisruptor_Impl, Delete)
{
delete this;
return 0;
@@ -78,7 +78,7 @@ IMPL_LINK_NOARG(SfxItemDesruptor_Impl, Delete)
void DeleteItemOnIdle(SfxPoolItem* pItem)
{
DBG_ASSERT( 0 == pItem->GetRefCount(), "deleting item in use" );
- SfxItemDesruptor_Impl *pDesruptor = new SfxItemDesruptor_Impl(pItem);
+ SfxItemDisruptor_Impl *pDesruptor = new SfxItemDisruptor_Impl(pItem);
pDesruptor->LaunchDeleteOnIdle();
}