diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-08 10:26:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-09 20:55:43 +0200 |
commit | 3be1cdce9d92cbadca1b276b3193c727032ea717 (patch) | |
tree | 0953ae68756eff46add082f5fc5526ba5c77fa70 /sc/qa | |
parent | 2f4c49fa96db7d6134fb28b20ea9ad4c51183f28 (diff) |
always pass ScInterpreterContext to ScValueIterator
its available at every call site
Change-Id: I764962d1d2330c414e02ed215b4a0c5be2979145
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139637
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 03cd8adfdbc8..0b21003a56c8 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -1336,6 +1336,8 @@ void Test::testValueIterator() aOpt.SetCalcAsShown(true); m_pDoc->SetDocOptions(aOpt); + ScInterpreterContext aContext(*m_pDoc, m_pDoc->GetFormatTable()); + // Purely horizontal data layout with numeric data. for (SCCOL i = 1; i <= 3; ++i) m_pDoc->SetValue(ScAddress(i,2,0), i); @@ -1343,7 +1345,7 @@ void Test::testValueIterator() { const double aChecks[] = { 1.0, 2.0, 3.0 }; size_t const nCheckLen = SAL_N_ELEMENTS(aChecks); - ScValueIterator aIter(*m_pDoc, ScRange(1,2,0,3,2,0)); + ScValueIterator aIter(aContext, *m_pDoc, ScRange(1,2,0,3,2,0)); bool bHas = false; size_t nCheckPos = 0; double fVal; |