Kaydet (Commit) 28a11eee authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Have the logger instantiate on first use.

Change-Id: Ia2e3c011a66030aafa479f3ea47dcc1fb0c5e8be
üst 3ab68524
...@@ -215,7 +215,12 @@ struct DebugCalculationStacker ...@@ -215,7 +215,12 @@ struct DebugCalculationStacker
namespace { namespace {
sc::FormulaLogger aLogger;
sc::FormulaLogger& getLogger()
{
static sc::FormulaLogger aLogger;
return aLogger;
}
// More or less arbitrary, of course all recursions must fit into available // 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 // stack space (which is what on all systems we don't know yet?). Choosing a
...@@ -4033,7 +4038,7 @@ bool ScFormulaCell::InterpretFormulaGroup() ...@@ -4033,7 +4038,7 @@ bool ScFormulaCell::InterpretFormulaGroup()
if (!mxGroup || !pCode) if (!mxGroup || !pCode)
return false; return false;
auto aScope = aLogger.enterGroup(*pDocument, *this); auto aScope = getLogger().enterGroup(*pDocument, *this);
if (mxGroup->meCalcState == sc::GroupCalcDisabled) if (mxGroup->meCalcState == sc::GroupCalcDisabled)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment