diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/itempool.hxx | 6 | ||||
-rw-r--r-- | include/svl/poolitem.hxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 77e43a5d9161..edff1915954a 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -87,7 +87,7 @@ public: protected: static inline void SetRefCount( SfxPoolItem& rItem, sal_uLong n ); - static inline sal_uLong AddRef( const SfxPoolItem& rItem, sal_uLong n = 1 ); + static inline void AddRef( const SfxPoolItem& rItem, sal_uLong n = 1 ); static inline sal_uLong ReleaseRef( const SfxPoolItem& rItem, sal_uLong n = 1); static inline void SetKind( SfxPoolItem& rItem, sal_uInt16 nRef ); @@ -228,9 +228,9 @@ inline void SfxItemPool::SetRefCount( SfxPoolItem& rItem, sal_uLong n ) } // only the pool may manipulate the reference counts -inline sal_uLong SfxItemPool::AddRef( const SfxPoolItem& rItem, sal_uLong n ) +inline void SfxItemPool::AddRef( const SfxPoolItem& rItem, sal_uLong n ) { - return rItem.AddRef(n); + rItem.AddRef(n); } // only the pool may manipulate the reference counts diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx index 0d438a95546a..e3243e2f2afa 100644 --- a/include/svl/poolitem.hxx +++ b/include/svl/poolitem.hxx @@ -170,7 +170,7 @@ private: inline void SetRefCount( sal_uLong n ); inline void SetKind( sal_uInt16 n ); public: - inline sal_uLong AddRef( sal_uLong n = 1 ) const; + inline void AddRef( sal_uLong n = 1 ) const; private: inline sal_uLong ReleaseRef( sal_uLong n = 1 ) const; @@ -270,11 +270,11 @@ inline void SfxPoolItem::SetKind( sal_uInt16 n ) m_nKind = n; } -inline sal_uLong SfxPoolItem::AddRef( sal_uLong n ) const +inline void SfxPoolItem::AddRef( sal_uLong n ) const { DBG_ASSERT(m_nRefCount <= SFX_ITEMS_MAXREF, "AddRef with non-Pool-Item"); DBG_ASSERT(ULONG_MAX - m_nRefCount > n, "AddRef: refcount overflow"); - return (const_cast<SfxPoolItem *>(this)->m_nRefCount += n); + const_cast<SfxPoolItem *>(this)->m_nRefCount += n; } inline sal_uLong SfxPoolItem::ReleaseRef( sal_uLong n ) const |