summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc_pivottable.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-23 11:19:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-24 11:01:42 +0200
commit87f6ca70a7c1ce94d6a5a32789ab430f6e604db6 (patch)
tree02ddf46d8b53c693499d1d83b0d4de308923bae7 /sc/qa/unit/ucalc_pivottable.cxx
parent13251ea5da9a1761740cc65ce6c50c897f12c698 (diff)
some places where ScDocument* is never passed a nullptr
Change-Id: Ic15bebe20cdea9df2cd5afd7af666bc76c88c8c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103277 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/qa/unit/ucalc_pivottable.cxx')
-rw-r--r--sc/qa/unit/ucalc_pivottable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_pivottable.cxx b/sc/qa/unit/ucalc_pivottable.cxx
index 9649eeb7b598..30308802e5e9 100644
--- a/sc/qa/unit/ucalc_pivottable.cxx
+++ b/sc/qa/unit/ucalc_pivottable.cxx
@@ -773,8 +773,8 @@ void Test::testPivotTableCache()
ScRange aDataRange = insertRangeData(m_pDoc, aPos, aData, SAL_N_ELEMENTS(aData));
CPPUNIT_ASSERT_EQUAL_MESSAGE("failed to insert range data at correct position", aPos, aDataRange.aStart);
- ScDPCache aCache(m_pDoc);
- aCache.InitFromDoc(m_pDoc, aDataRange);
+ ScDPCache aCache(*m_pDoc);
+ aCache.InitFromDoc(*m_pDoc, aDataRange);
long nDimCount = aCache.GetColumnCount();
CPPUNIT_ASSERT_EQUAL_MESSAGE("wrong dimension count.", 3L, nDimCount);
OUString aDimName = aCache.GetDimensionName(0);