sw/source/core/doc/doctxm.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b84fbee2472504fd600a6d7ac9a1131c7cddf8d4
Author: Michael Stahl <[email protected]>
Date:   Tue Mar 21 14:44:47 2017 +0100

    sw: those should be asserts
    
    Change-Id: I2785b1d98307a19666ad3aabf3bbaff19a9d0a6e

diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 460a647749f4..aa6d3b15cf6a 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -149,10 +149,10 @@ sal_uInt16 SwDoc::GetCurTOXMark( const SwPosition& rPos,
 void SwDoc::DeleteTOXMark( const SwTOXMark* pTOXMark )
 {
     const SwTextTOXMark* pTextTOXMark = pTOXMark->GetTextTOXMark();
-    OSL_ENSURE( pTextTOXMark, "No TextTOXMark, cannot be deleted" );
+    assert(pTextTOXMark);
 
     SwTextNode& rTextNd = const_cast<SwTextNode&>(pTextTOXMark->GetTextNode());
-    OSL_ENSURE( rTextNd.GetpSwpHints(), "cannot be deleted" );
+    assert(rTextNd.GetpSwpHints());
 
     if (pTextTOXMark->HasDummyChar())
     {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to