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/inc | |
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/inc')
-rw-r--r-- | sc/inc/dociter.hxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index ff58a4181e12..55a2040f1d1b 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -53,7 +53,7 @@ class ScValueIterator // walk through all values in an area typedef sc::CellStoreType::const_position_type PositionType; ScDocument& mrDoc; - ScInterpreterContext* pContext; + ScInterpreterContext& mrContext; const ScAttrArray* pAttrArray; sal_uInt32 nNumFormat; // for CalcAsShown sal_uInt32 nNumFmtIndex; @@ -83,7 +83,7 @@ class ScValueIterator // walk through all values in an area public: - ScValueIterator( + ScValueIterator(ScInterpreterContext& rContext, ScDocument& rDocument, const ScRange& rRange, SubtotalFlags nSubTotalFlags = SubtotalFlags::NONE, bool bTextAsZero = false ); @@ -94,8 +94,6 @@ public: /// Does NOT reset rValue if no value found! bool GetNext( double& rValue, FormulaError& rErr ); - - void SetInterpreterContext( ScInterpreterContext* context ) { pContext = context; } }; class ScDBQueryDataIterator |