[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 13 13:18:41 UTC 2020
sc/source/core/data/documen4.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 2b126a0044d56ca771d3c3930491c73ee1478b37
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Sep 12 16:55:19 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Sep 13 15:18:00 2020 +0200
setCacheTableReferenced never passed a null ScDocument*
Change-Id: I928a047e08e7b10255253dedb5f6fb52a0daf7bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102530
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 2261d9424745..5f0d2fd64cb6 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -453,7 +453,7 @@ void ScDocument::InsertTableOp(const ScTabOpParam& rParam, // multiple (repeate
namespace {
-bool setCacheTableReferenced(const ScDocument* pDoc, formula::FormulaToken& rToken, ScExternalRefManager& rRefMgr, const ScAddress& rPos)
+bool setCacheTableReferenced(const ScDocument& rDoc, formula::FormulaToken& rToken, ScExternalRefManager& rRefMgr, const ScAddress& rPos)
{
switch (rToken.GetType())
{
@@ -463,7 +463,7 @@ bool setCacheTableReferenced(const ScDocument* pDoc, formula::FormulaToken& rTok
case svExternalDoubleRef:
{
const ScComplexRefData& rRef = *rToken.GetDoubleRef();
- ScRange aAbs = rRef.toAbs(*pDoc, rPos);
+ ScRange aAbs = rRef.toAbs(rDoc, rPos);
size_t nSheets = aAbs.aEnd.Tab() - aAbs.aStart.Tab() + 1;
return rRefMgr.setCacheTableReferenced(
rToken.GetIndex(), rToken.GetString().getString(), nSheets);
@@ -500,7 +500,7 @@ bool ScDocument::MarkUsedExternalReferences( const ScTokenArray& rArr, const ScA
if (!pRefMgr)
pRefMgr = GetExternalRefManager();
- bAllMarked = setCacheTableReferenced(this, *t, *pRefMgr, rPos);
+ bAllMarked = setCacheTableReferenced(*this, *t, *pRefMgr, rPos);
}
else if (t->GetType() == svIndex)
{
@@ -520,7 +520,7 @@ bool ScDocument::MarkUsedExternalReferences( const ScTokenArray& rArr, const ScA
if (!pRefMgr)
pRefMgr = GetExternalRefManager();
- bAllMarked = setCacheTableReferenced(this, *t, *pRefMgr, rPos);
+ bAllMarked = setCacheTableReferenced(*this, *t, *pRefMgr, rPos);
}
}
}
More information about the Libreoffice-commits
mailing list