diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 14:37:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-03 05:25:41 +0000 |
commit | c625525ddcc5bd1ceb1be95031da6047280d623c (patch) | |
tree | f3469c6d418dadd723d4b91b8166015b3f6442b9 /include | |
parent | 4a0fc2fb026ee46f7ef8e75135e2ae9b411ae134 (diff) |
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 <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/ref.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |