summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-16 16:29:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-16 20:39:23 +0200
commitc2518134a55658218c924b43b5c87e4fbdaed1d4 (patch)
tree0bfdfb02eac7ea85f79dd6a1bde21e94d7be43c0 /sc/qa
parent7eae7e54e0c55d5896cf807c339fd0789f54d380 (diff)
create getter for ScCellValue::mfValue
so we can assert that has the correct tag type Change-Id: I0d626130cb014e19239e88a6988018c83d061f68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136001 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/subsequent_filters_test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/subsequent_filters_test.cxx b/sc/qa/unit/subsequent_filters_test.cxx
index c1dd83f791a2..cb61bdd5a08a 100644
--- a/sc/qa/unit/subsequent_filters_test.cxx
+++ b/sc/qa/unit/subsequent_filters_test.cxx
@@ -552,7 +552,7 @@ void ScFiltersTest::testDeleteCircleInMergedCellODS()
aMergedCell.assign(rDoc, aPosMergedCell);
// The value of merged cell change to 6.
- aMergedCell.mfValue = 6;
+ aMergedCell = ScRefCellValue(6);
// Check that the data is valid.(True if the value = 6)
const ScValidationData* pData = rDoc.GetValidationEntry(1);
@@ -584,7 +584,7 @@ void ScFiltersTest::testBasicCellContentODS()
aCell.assign(rDoc, ScAddress(1,4,0)); // B5
CPPUNIT_ASSERT_EQUAL_MESSAGE(
"This cell must be numeric.", CELLTYPE_VALUE, aCell.getType());
- CPPUNIT_ASSERT_EQUAL(0.0, aCell.mfValue);
+ CPPUNIT_ASSERT_EQUAL(0.0, aCell.getDouble());
xDocSh->DoClose();
}