From 87f6ca70a7c1ce94d6a5a32789ab430f6e604db6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 23 Sep 2020 11:19:17 +0100 Subject: some places where ScDocument* is never passed a nullptr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic15bebe20cdea9df2cd5afd7af666bc76c88c8c3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103277 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/qa/unit/ucalc_pivottable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/qa/unit/ucalc_pivottable.cxx') 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); -- cgit