summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-11-28 10:26:50 +0100
committerLuboš Luňák <l.lunak@collabora.com>2018-12-03 15:31:23 +0100
commit95ff92118d28af20e1b3a2e5f0d5f8c6f79fb2a8 (patch)
treeb354e77b9b655836abf70d5893f7b8d473cb1eed
parentremove unused function (diff)
downloadcore-95ff92118d28af20e1b3a2e5f0d5f8c6f79fb2a8.tar.gz
core-95ff92118d28af20e1b3a2e5f0d5f8c6f79fb2a8.zip
simply abort if SC_FORCE_CALCULATION has unknown value
This is a debug tool and it's better to get it this way rather than the code doing something else e.g. because of a typo. Change-Id: I5ac7e7bd6ecaa15fe935d53df63e3c369e0f8f16 Reviewed-on: https://gerrit.libreoffice.org/64234 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--sc/source/core/tool/calcconfig.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 5f40c60ad47e..4525df730484 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -59,7 +59,8 @@ static ForceCalculationType forceCalculationTypeInit()
SAL_INFO("sc.core.formulagroup", "Forcing calculations to use core");
return ForceCalculationCore;
}
- SAL_WARN("sc.core.formulagroup", "Unrecognized value of SC_TEST_CALCULATION");
+ SAL_WARN("sc.core.formulagroup", "Unrecognized value of SC_FORCE_CALCULATION");
+ abort();
}
return ForceCalculationNone;
}