summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-09-02 20:04:20 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2017-09-03 15:32:42 +0200
commitb625d790bf1ccab1b4071ea7670a6e1ceab5fb64 (patch)
tree40963bd89dfb83e5e806abef872ee3160c31fda9 /include
parent09ae0a74bb946bc64fbc76082a52064a36ee9b01 (diff)
SfxItemPool::AddRef always adds 1
Change-Id: I710ff662ed5b8a77d228e49804d3de418899c76b Reviewed-on: https://gerrit.libreoffice.org/41859 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'include')
-rw-r--r--include/svl/itempool.hxx6
1 files changed, 3 insertions, 3 deletions
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