[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 26 08:53:13 UTC 2019
sw/source/core/docnode/nodes.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 8b280223df5d819019338c9ad5f74aa528c96aad
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Thu Apr 25 18:35:45 2019 +0200
Commit: Michael Stahl <Michael.Stahl at 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.Stahl at 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;
}
More information about the Libreoffice-commits
mailing list