summaryrefslogtreecommitdiff
path: root/include/tools/ref.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/ref.hxx')
-rw-r--r--include/tools/ref.hxx6
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 )