From b625d790bf1ccab1b4071ea7670a6e1ceab5fb64 Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 2 Sep 2017 20:04:20 +0200 Subject: SfxItemPool::AddRef always adds 1 Change-Id: I710ff662ed5b8a77d228e49804d3de418899c76b Reviewed-on: https://gerrit.libreoffice.org/41859 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- include/svl/itempool.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 90138c93889a..b148f0aee5d4 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -81,7 +81,7 @@ public: protected: static inline void ClearRefCount(SfxPoolItem& rItem); - static inline void AddRef(const SfxPoolItem& rItem, sal_uInt32 n = 1); + static inline void AddRef(const SfxPoolItem& rItem); static inline sal_uInt32 ReleaseRef(const SfxPoolItem& rItem, sal_uInt32 n = 1); public: @@ -194,9 +194,9 @@ inline void SfxItemPool::ClearRefCount(SfxPoolItem& rItem) } // only the pool may manipulate the reference counts -inline void SfxItemPool::AddRef(const SfxPoolItem& rItem, sal_uInt32 n) +inline void SfxItemPool::AddRef(const SfxPoolItem& rItem) { - rItem.AddRef(n); + rItem.AddRef(); } // only the pool may manipulate the reference counts -- cgit