diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-21 12:18:47 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-23 13:26:17 +0200 |
commit | 0361eb7c20db4eba051ad5593c63b69f3565e488 (patch) | |
tree | 6b91a10c1b6d24d127d5d6569a15a8c395856bf3 /include/svl/poolitem.hxx | |
parent | b0a13b78e7b381cfc9d06a4a351d5d345e15e557 (diff) |
remove unused return type from SfxItemPool::AddRef
Change-Id: Ideb690df8a74efe55bff832e16e66a6b77b1530a
Diffstat (limited to 'include/svl/poolitem.hxx')
-rw-r--r-- | include/svl/poolitem.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 |