summaryrefslogtreecommitdiff
path: root/sc/source/core/data/table3.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-13 16:31:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-13 22:11:52 +0200
commitf3af5f8e6897279dc8e4ad2695caf7f25937d608 (patch)
tree31b34410f5473634b0f14caa7e925a0ef3673774 /sc/source/core/data/table3.cxx
parent61fa9c8cbf1792fad2bdc8f86a2825f759d18950 (diff)
ScTokenArray ctor always dereferences its ScDocument* arg
Change-Id: Ie65ca182fd00600670c1e916343fef511d6cdcc8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102588 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/table3.cxx')
-rw-r--r--sc/source/core/data/table3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index d30499f305e1..7a34da65b1ca 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2164,7 +2164,7 @@ bool ScTable::DoSubTotals( ScSubTotalParam& rParam )
aRef.Ref2.SetAbsCol(nResCols[nResult]);
aRef.Ref2.SetAbsRow(rRowEntry.nFuncEnd);
- ScTokenArray aArr(pDocument);
+ ScTokenArray aArr(*pDocument);
aArr.AddOpCode( ocSubTotal );
aArr.AddOpCode( ocOpen );
aArr.AddDouble( static_cast<double>(pResFunc[nResult]) );