diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-11 16:17:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-11 21:54:08 +0200 |
commit | 4cb85b20ae5a8ddda46b74382d60ec89b1b41320 (patch) | |
tree | 41f14d70ccf161842045646f1b0b8b21abae3d92 /sc/inc/interpretercontext.hxx | |
parent | b71815a8d49f95657ce8253434187827e63a5ade (diff) |
use unique_ptr for ScLookupCacheMap
Change-Id: Ib09a5331dfd57a99852555348c46730368d8d61d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100531
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/interpretercontext.hxx')
-rw-r--r-- | sc/inc/interpretercontext.hxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sc/inc/interpretercontext.hxx b/sc/inc/interpretercontext.hxx index 7eb1f1415642..2e0ff91632d6 100644 --- a/sc/inc/interpretercontext.hxx +++ b/sc/inc/interpretercontext.hxx @@ -57,21 +57,13 @@ struct ScInterpreterContext size_t mnTokenCachePos; std::vector<formula::FormulaToken*> maTokens; std::vector<DelayedSetNumberFormat> maDelayedSetNumberFormat; - ScLookupCacheMap* mScLookupCache; // cache for lookups like VLOOKUP and MATCH + std::unique_ptr<ScLookupCacheMap> mxScLookupCache; // cache for lookups like VLOOKUP and MATCH // Allocation cache for "aConditions" array in ScInterpreter::IterateParameterIfs() // This is populated/used only when formula-group threading is enabled. std::vector<sal_uInt32> maConditions; ScInterpreter* pInterpreter; - ScInterpreterContext(const ScDocument& rDoc, SvNumberFormatter* pFormatter) - : mpDoc(&rDoc) - , mnTokenCachePos(0) - , maTokens(TOKEN_CACHE_SIZE, nullptr) - , mScLookupCache(nullptr) - , pInterpreter(nullptr) - , mpFormatter(pFormatter) - { - } + ScInterpreterContext(const ScDocument& rDoc, SvNumberFormatter* pFormatter); ScInterpreterContext() = delete; |