diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-04-26 07:34:54 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-04-26 09:14:00 +0200 |
commit | f14fd17e2dd66fa1c70358a3bdf2ec72e68714ac (patch) | |
tree | 523ad1e447d000e3fc8821934d37eec134674ee7 /toolkit | |
parent | 2460816491fe8593e8c7b13caf596383484b3031 (diff) |
Convert DBG_ASSERT to assert
Change-Id: Ia28bf8fa53fa81c73a422c2af280e0418bd2aaf0
Reviewed-on: https://gerrit.libreoffice.org/71341
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/stdtabcontroller.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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(); |