summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-02 14:37:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-03 05:25:41 +0000
commitc625525ddcc5bd1ceb1be95031da6047280d623c (patch)
treef3469c6d418dadd723d4b91b8166015b3f6442b9 /sot
parent4a0fc2fb026ee46f7ef8e75135e2ae9b411ae134 (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 'sot')
-rw-r--r--sot/source/base/object.cxx2
-rw-r--r--sot/source/sdstor/stgcache.cxx2
-rw-r--r--sot/source/sdstor/ucbstorage.cxx14
3 files changed, 9 insertions, 9 deletions
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index 7b12750357fd..2e5a7811fb7d 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -88,7 +88,7 @@ void SotObject::OwnerLock
if( bLock )
{
nOwnerLockCount++;
- AddRef();
+ AddFirstRef();
}
else if ( nOwnerLockCount )
{
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx
index e073dc827e05..cbed63a6d27f 100644
--- a/sot/source/sdstor/stgcache.cxx
+++ b/sot/source/sdstor/stgcache.cxx
@@ -262,7 +262,7 @@ void StgCache::SetStrm( UCBStorageStream* pStgStream )
if ( pStorageStream )
{
- pStorageStream->AddRef();
+ pStorageStream->AddFirstRef();
pStrm = pStorageStream->GetModifySvStream();
}
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index fc8b368449f5..b5c12cdc3c44 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -1264,14 +1264,14 @@ UCBStorageStream::UCBStorageStream( const OUString& rName, StreamMode nMode, boo
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorageStream !
pImp = new UCBStorageStream_Impl( rName, nMode, this, bDirect, pKey, bRepair, xProgress );
- pImp->AddRef(); // use direct refcounting because in header file only a pointer should be used
+ pImp->AddFirstRef(); // use direct refcounting because in header file only a pointer should be used
StorageBase::m_nMode = pImp->m_nMode;
}
UCBStorageStream::UCBStorageStream( UCBStorageStream_Impl *pImpl )
: pImp( pImpl )
{
- pImp->AddRef(); // use direct refcounting because in header file only a pointer should be used
+ pImp->AddFirstRef(); // use direct refcounting because in header file only a pointer should be used
pImp->m_pAntiImpl = this;
SetError( pImp->m_nError );
StorageBase::m_nMode = pImp->m_nMode;
@@ -1474,7 +1474,7 @@ UCBStorage::UCBStorage( SvStream& rStrm, bool bDirect )
pImp = new UCBStorage_Impl( rStrm, this, bDirect );
}
- pImp->AddRef();
+ pImp->AddFirstRef();
pImp->Init();
StorageBase::m_nMode = pImp->m_nMode;
}
@@ -1484,7 +1484,7 @@ UCBStorage::UCBStorage( const ::ucbhelper::Content& rContent, const OUString& rN
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorage !
pImp = new UCBStorage_Impl( rContent, rName, nMode, this, bDirect, bIsRoot );
- pImp->AddRef();
+ pImp->AddFirstRef();
pImp->Init();
StorageBase::m_nMode = pImp->m_nMode;
}
@@ -1494,7 +1494,7 @@ UCBStorage::UCBStorage( const OUString& rName, StreamMode nMode, bool bDirect, b
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorage !
pImp = new UCBStorage_Impl( rName, nMode, this, bDirect, bIsRoot, bIsRepair, xProgressHandler );
- pImp->AddRef();
+ pImp->AddFirstRef();
pImp->Init();
StorageBase::m_nMode = pImp->m_nMode;
}
@@ -1504,7 +1504,7 @@ UCBStorage::UCBStorage( const OUString& rName, StreamMode nMode, bool bDirect, b
// pImp must be initialized in the body, because otherwise the vtable of the stream is not initialized
// to class UCBStorage !
pImp = new UCBStorage_Impl( rName, nMode, this, bDirect, bIsRoot, false, Reference< XProgressHandler >() );
- pImp->AddRef();
+ pImp->AddFirstRef();
pImp->Init();
StorageBase::m_nMode = pImp->m_nMode;
}
@@ -1514,7 +1514,7 @@ UCBStorage::UCBStorage( UCBStorage_Impl *pImpl )
{
pImp->m_pAntiImpl = this;
SetError( pImp->m_nError );
- pImp->AddRef(); // use direct refcounting because in header file only a pointer should be used
+ pImp->AddFirstRef(); // use direct refcounting because in header file only a pointer should be used
StorageBase::m_nMode = pImp->m_nMode;
}