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

Michael Stahl mstahl at redhat.com
Tue Mar 6 13:08:00 UTC 2018


 sw/source/core/layout/sectfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1eda4a770a64c2ebf7092f841ecd8c82e62f7bf7
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue Mar 6 10:03:53 2018 +0100

    sw: convert that to assert too
    
    Change-Id: I4f06fc4871cbb92b40d950b31a06b5e185aed321
    Reviewed-on: https://gerrit.libreoffice.org/50806
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index e9cf9479dc91..786cca7ffbae 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -1749,7 +1749,7 @@ SwLayoutFrame *SwFrame::GetNextSctLeaf( MakePageType eMakePage )
                         pNxt = static_cast<SwSectionFrame*>(pTmp);
                     else
                     {
-                        OSL_ENSURE( pTmp->IsTabFrame(), "GetNextSctLeaf: Wrong Type" );
+                        assert(pTmp->IsTabFrame());
                         pNxt = static_cast<SwTabFrame*>(pTmp);
                     }
                     while( !pNxtContent && nullptr != ( pTmp = pTmp->GetNext() ) )


More information about the Libreoffice-commits mailing list