summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/formulalogger.hxx2
-rw-r--r--sc/source/core/data/formulacell.cxx9
-rw-r--r--sc/source/core/tool/formulalogger.cxx6
3 files changed, 9 insertions, 8 deletions
diff --git a/sc/inc/formulalogger.hxx b/sc/inc/formulalogger.hxx
index 581a2eb63090..bc547b97dc99 100644
--- a/sc/inc/formulalogger.hxx
+++ b/sc/inc/formulalogger.hxx
@@ -30,6 +30,8 @@ class FormulaLogger
public:
+ static FormulaLogger& get();
+
/**
* This class is only moveable.
*/
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index f5c82c432623..7f97e26531e0 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -215,13 +215,6 @@ struct DebugCalculationStacker
namespace {
-
-sc::FormulaLogger& getLogger()
-{
- static sc::FormulaLogger aLogger;
- return aLogger;
-}
-
// More or less arbitrary, of course all recursions must fit into available
// stack space (which is what on all systems we don't know yet?). Choosing a
// lower value may be better than trying a much higher value that also isn't
@@ -4038,7 +4031,7 @@ bool ScFormulaCell::InterpretFormulaGroup()
if (!mxGroup || !pCode)
return false;
- auto aScope = getLogger().enterGroup(*pDocument, *this);
+ auto aScope = sc::FormulaLogger::get().enterGroup(*pDocument, *this);
if (mxGroup->meCalcState == sc::GroupCalcDisabled)
{
diff --git a/sc/source/core/tool/formulalogger.cxx b/sc/source/core/tool/formulalogger.cxx
index a9ea3ba2fc52..db51259e8dc2 100644
--- a/sc/source/core/tool/formulalogger.cxx
+++ b/sc/source/core/tool/formulalogger.cxx
@@ -20,6 +20,12 @@
namespace sc {
+FormulaLogger& FormulaLogger::get()
+{
+ static FormulaLogger aLogger;
+ return aLogger;
+}
+
struct FormulaLogger::GroupScope::Impl
{
FormulaLogger& mrLogger;