summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-08-27 01:10:36 +0200
committerEike Rathke <erack@redhat.com>2022-08-27 02:57:46 +0200
commit1581a631464254bbc428649c35b23c79df837ed2 (patch)
treede86a9906d91f04abc7a674b182465d243fa100c /sc/inc
parentd05c176cc022f1b771f7c064f6ce74e9f8c27a1b (diff)
Do not gather function data over and over again for each formula input
The function list changes only if switched to/from English function names or if reset for AddIn config and only then needs to be rebuilt. In all other cases simply reuse a once obtained data set and only append the dynamic document content. Change-Id: I5b1d14205e2933010a1b4382c985594d75802742 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138890 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/funcdesc.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx
index 0f37e924d941..01829417e485 100644
--- a/sc/inc/funcdesc.hxx
+++ b/sc/inc/funcdesc.hxx
@@ -253,9 +253,12 @@ public:
const ScFuncDesc* GetFunction( sal_uInt32 nIndex ) const;
+ bool IsEnglishFunctionNames() const { return mbEnglishFunctionNames; }
+
private:
::std::vector<const ScFuncDesc*> aFunctionList; /**< List of functions */
::std::vector<const ScFuncDesc*>::iterator aFunctionListIter; /**< position in function list */
+ bool mbEnglishFunctionNames;
};
/**