From f14fd17e2dd66fa1c70358a3bdf2ec72e68714ac Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 26 Apr 2019 07:34:54 +0200 Subject: Convert DBG_ASSERT to assert Change-Id: Ia28bf8fa53fa81c73a422c2af280e0418bd2aaf0 Reviewed-on: https://gerrit.libreoffice.org/71341 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- toolkit/source/controls/stdtabcontroller.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/stdtabcontroller.cxx b/toolkit/source/controls/stdtabcontroller.cxx index 42d614702856..c9fb9f99a1e1 100644 --- a/toolkit/source/controls/stdtabcontroller.cxx +++ b/toolkit/source/controls/stdtabcontroller.cxx @@ -81,11 +81,9 @@ bool StdTabController::ImplCreateComponentSequence( aSeq.realloc(nRealControls); rControls = aSeq; } -#ifdef DBG_UTIL - DBG_ASSERT( rControls.getLength() <= rModels.getLength(), "StdTabController:ImplCreateComponentSequence: inconsistence!" ); - // there may be less controls than models, but never more controls than models -#endif + // there may be less controls than models, but never more controls than models + assert(rControls.getLength() <= rModels.getLength()); const Reference< XControl > * pControls = rControls.getConstArray(); sal_uInt32 nCtrls = rControls.getLength(); -- cgit