sw/source/core/docnode/nodes.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 8b280223df5d819019338c9ad5f74aa528c96aad
Author:     Michael Stahl <michael.st...@cib.de>
AuthorDate: Thu Apr 25 18:35:45 2019 +0200
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Fri Apr 26 10:52:00 2019 +0200

    sw: trivial OSL_FAIL to assert in nodes.cxx
    
    Change-Id: I6c034310ffcc5eacf7db0064d739a9796d66d6e4
    Reviewed-on: https://gerrit.libreoffice.org/71325
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index cce08f13204b..2bfc9eb76067 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -62,7 +62,7 @@ SwNodes::SwNodes( SwDoc* pDocument )
 {
     m_bInNodesDel = m_bInDelUpdOutline = false;
 
-    OSL_ENSURE( m_pMyDoc, "in which Doc am I?" );
+    assert(m_pMyDoc);
 
     sal_uLong nPos = 0;
     SwStartNode* pSttNd = new SwStartNode( *this, nPos++ );
@@ -832,13 +832,13 @@ bool SwNodes::MoveNodes( const SwNodeRange& aRange, 
SwNodes & rNodes,
                 }
             }
             else {
-                OSL_FAIL( "How can this node be in the node array?" );
+                assert(!"How can this node be in the node array?");
             }
             --aRg.aEnd;
             break;
 
         default:
-            OSL_FAIL( "Unknown node type" );
+            assert(!"Unknown node type");
             break;
         }
     }
@@ -1866,12 +1866,12 @@ void SwNodes::CopyNodes( const SwNodeRange& rRange,
                     ++aInsPos;  // skip
             }
             else {
-                OSL_FAIL( "How can this node be in the node array?" );
+                assert(!"How can this node be in the node array?");
             }
             break;
 
         default:
-            OSL_FAIL( "Unknown node type" );
+            assert(false);
         }
         ++aRg.aStart;
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to