summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-11-22 15:51:18 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-11-22 21:02:07 +0100
commit3afe0c79fa185a6fe01c48e427c49b12728e8c4a (patch)
tree6d27b17a476ca075f04d2ea419f3441988601e19 /sc
parentf19dfaf817556ba28d68c000f3561a2752635727 (diff)
--enable-dbgutil --disable-assert-always-abort fixes
...which <https://ci.libreoffice.org/job/lo_tb_random_config_linux/> occasionally stumbles across; plus some related loplugin:staticmethods fixes Change-Id: If6998c302cfbabfcad626d9c68d94d3368548a41 Reviewed-on: https://gerrit.libreoffice.org/63808 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 6f82740d3b38..5b20269528a4 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1457,13 +1457,13 @@ class RecursionCounter
{
ScRecursionHelper& rRec;
bool bStackedInIteration;
-#ifdef DBG_UTIL
+#if defined DBG_UTIL && !defined NDEBUG
const ScFormulaCell* cell;
#endif
public:
RecursionCounter( ScRecursionHelper& r, ScFormulaCell* p )
: rRec(r)
-#ifdef DBG_UTIL
+#if defined DBG_UTIL && !defined NDEBUG
, cell(p)
#endif
{
@@ -1477,7 +1477,7 @@ public:
rRec.DecRecursionCount();
if (bStackedInIteration)
{
-#ifdef DBG_UTIL
+#if defined DBG_UTIL && !defined NDEBUG
assert(rRec.GetRecursionInIterationStack().top() == cell);
#endif
rRec.GetRecursionInIterationStack().pop();