summaryrefslogtreecommitdiff
path: root/basic/source/classes
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 /basic/source/classes
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 'basic/source/classes')
-rw-r--r--basic/source/classes/sbxmod.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 5ff07672600b..351508c6490e 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -2103,11 +2103,11 @@ ErrCode SbMethod::Call( SbxValue* pRet, SbxVariable* pCaller )
}
// RefCount vom Modul hochzaehlen
SbModule* pMod_ = static_cast<SbModule*>(GetParent());
- pMod_->AddRef();
+ pMod_->AddFirstRef();
// Increment the RefCount of the Basic
StarBASIC* pBasic = static_cast<StarBASIC*>(pMod_->GetParent());
- pBasic->AddRef();
+ pBasic->AddFirstRef();
// Establish the values to get the return value
SbxValues aVals;