include/svl/itempool.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit b625d790bf1ccab1b4071ea7670a6e1ceab5fb64 Author: Jochen Nitschke <j.nitschke+loger...@ok.de> Date: Sat Sep 2 20:04:20 2017 +0200 SfxItemPool::AddRef always adds 1 Change-Id: I710ff662ed5b8a77d228e49804d3de418899c76b Reviewed-on: https://gerrit.libreoffice.org/41859 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+loger...@ok.de> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits