From c625525ddcc5bd1ceb1be95031da6047280d623c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Oct 2014 14:37:06 +0200 Subject: rename SvRef::AddRef to AddFirstRef to make it's intended purpose clearly distinguishable from AddNextRef Change-Id: I5da780b48b19fd873667b648031bc394113f953b Reviewed-on: https://gerrit.libreoffice.org/11763 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- include/tools/ref.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/tools/ref.hxx') diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx index 3b8b320c5fe0..b18ce055081c 100644 --- a/include/tools/ref.hxx +++ b/include/tools/ref.hxx @@ -40,7 +40,7 @@ public: SvRef(T * pObjP): pObj(pObjP) { - if (pObj != 0) pObj->AddRef(); + if (pObj != 0) pObj->AddFirstRef(); } ~SvRef() @@ -121,7 +121,7 @@ public: inline void push_back( T p ) { base_t::push_back( p ); - p->AddRef(); + p->AddFirstRef(); } inline void insert(const SvRefMemberList& rOther) @@ -171,7 +171,7 @@ public: ++nRefCount; } - void AddRef() + void AddFirstRef() { assert( nRefCount < (1 << 30) && "Do not add refs to dead objects" ); if( bNoDelete ) -- cgit