diff options
-rw-r--r-- | include/svtools/itemdel.hxx | 2 | ||||
-rw-r--r-- | svtools/source/misc/itemdel.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/svtools/itemdel.hxx b/include/svtools/itemdel.hxx index ef08ca942234..da68f2f893e3 100644 --- a/include/svtools/itemdel.hxx +++ b/include/svtools/itemdel.hxx @@ -23,7 +23,7 @@ class SfxPoolItem; -SVT_DLLPUBLIC SfxPoolItem* DeleteItemOnIdle( SfxPoolItem* pItem ); +SVT_DLLPUBLIC void DeleteItemOnIdle( SfxPoolItem* pItem ); #endif diff --git a/svtools/source/misc/itemdel.cxx b/svtools/source/misc/itemdel.cxx index 0e89b8bffd2e..ad5624083c3e 100644 --- a/svtools/source/misc/itemdel.cxx +++ b/svtools/source/misc/itemdel.cxx @@ -83,11 +83,10 @@ IMPL_LINK_NOARG(SfxItemDesruptor_Impl, Delete) } // ------------------------------------------------------------------------ -SfxPoolItem* DeleteItemOnIdle( SfxPoolItem* pItem ) +void DeleteItemOnIdle( SfxPoolItem* pItem ) { DBG_ASSERT( 0 == pItem->GetRefCount(), "deleting item in use" ); new SfxItemDesruptor_Impl( pItem ); - return pItem; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |