diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-06-16 17:57:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-17 15:59:42 +0200 |
commit | 12b817140641a94ebb3ef8271c5e955eb80e56f2 (patch) | |
tree | ed920ec3c4efe6051ca65b340ed14bf0a51a8c22 /sc/qa | |
parent | c1eba8d34a5ea13e6317c7820507d717ace4ec5c (diff) |
create getter for ScCellValue::mpString
so we can assert that it has the correct tag type
Change-Id: I8933919aefc2bb22694a283b54dc3de11d16e5a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136002
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc_sharedformula.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index 64f248c91cf8..69f3e3be3d42 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -284,7 +284,7 @@ void TestSharedFormula::testSharedFormulas() ScCellValue aCell(svl::SharedString("Test")); CPPUNIT_ASSERT_EQUAL_MESSAGE("This should be a string value.", CELLTYPE_STRING, aCell.getType()); aCell.commit(*m_pDoc, aPos); - CPPUNIT_ASSERT_EQUAL(aCell.mpString->getString(), m_pDoc->GetString(aPos)); + CPPUNIT_ASSERT_EQUAL(aCell.getSharedString()->getString(), m_pDoc->GetString(aPos)); aPos.SetRow(16); pFC = m_pDoc->GetFormulaCell(aPos); CPPUNIT_ASSERT(pFC); |