[Libreoffice-commits] core.git: toolkit/source

Samuel Mehrbrodt (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 26 07:15:10 UTC 2019


 toolkit/source/controls/stdtabcontroller.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit f14fd17e2dd66fa1c70358a3bdf2ec72e68714ac
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Fri Apr 26 07:34:54 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Fri Apr 26 09:14:00 2019 +0200

    Convert DBG_ASSERT to assert
    
    Change-Id: Ia28bf8fa53fa81c73a422c2af280e0418bd2aaf0
    Reviewed-on: https://gerrit.libreoffice.org/71341
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

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();


More information about the Libreoffice-commits mailing list