summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-04-25 18:35:45 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2019-04-26 10:52:00 +0200
commit8b280223df5d819019338c9ad5f74aa528c96aad (patch)
treee1c54b25355a78fc86482f171c79ee0dbfd606d8 /sw
parent516983b7798a3ecc4d9e443ef5d8e573e01f5e53 (diff)
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.Stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodes.cxx10
1 files changed, 5 insertions, 5 deletions
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;
}