summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc_pivottable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/ucalc_pivottable.cxx')
-rw-r--r--sc/qa/unit/ucalc_pivottable.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc_pivottable.cxx b/sc/qa/unit/ucalc_pivottable.cxx
index e78065c11258..0b80e89f2207 100644
--- a/sc/qa/unit/ucalc_pivottable.cxx
+++ b/sc/qa/unit/ucalc_pivottable.cxx
@@ -300,8 +300,8 @@ void Test::testPivotTable()
// This time clear the cache to refresh the data from the source range.
CPPUNIT_ASSERT_MESSAGE("This datapilot should be based on sheet data.", pDPObj2->IsSheetData());
std::set<ScDPObject*> aRefs;
- sal_uLong nErrId = pDPs->ReloadCache(pDPObj2, aRefs);
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Cache reload failed.", sal_uLong(0), nErrId);
+ const char* pErrId = pDPs->ReloadCache(pDPObj2, aRefs);
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Cache reload failed.", static_cast<const char*>(nullptr), pErrId);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Reloading a cache shouldn't remove any cache.",
static_cast<size_t>(1), pDPs->GetSheetCaches().size());
@@ -1541,8 +1541,8 @@ void Test::testPivotTableEmptyRows()
m_pDoc->SetString(1, 2, 0, "B");
std::set<ScDPObject*> aRefs;
- sal_uLong nErr = pDPs->ReloadCache(pDPObj, aRefs);
- CPPUNIT_ASSERT_MESSAGE("Failed to reload cache.", !nErr);
+ const char* pErr = pDPs->ReloadCache(pDPObj, aRefs);
+ CPPUNIT_ASSERT_MESSAGE("Failed to reload cache.", !pErr);
CPPUNIT_ASSERT_MESSAGE("There should only be one pivot table linked to this cache.",
aRefs.size() == 1 && *aRefs.begin() == pDPObj);