diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 11:51:35 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:54:59 +0100 |
commit | 64378f446e782b6636312a8c72a7400fd799c1a4 (patch) | |
tree | 25376336ad586c3804f16ebc05d62fb069bce74b /sw/source/filter/writer | |
parent | 83d8300b31948702f3c11dc14d4070501b108084 (diff) |
Move OSL_ENSURE(false,...) to OSL_FAIL(...)
Diffstat (limited to 'sw/source/filter/writer')
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/writer/wrt_fn.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 3bda70b247a3..4d35499bb2ca 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -233,7 +233,7 @@ SwPaM* Writer::NewSwPaM( SwDoc & rDoc, ULONG nStartIdx, ULONG nEndIdx, SwCntntNode* pCNode = aStt.GetNode().GetCntntNode(); if( !pCNode && 0 == ( pCNode = pNds->GoNext( &aStt )) ) { - OSL_ENSURE( false, "An StartPos kein ContentNode mehr" ); + OSL_FAIL( "An StartPos kein ContentNode mehr" ); } SwPaM* pNew = new SwPaM( aStt ); @@ -242,7 +242,7 @@ SwPaM* Writer::NewSwPaM( SwDoc & rDoc, ULONG nStartIdx, ULONG nEndIdx, if( 0 == (pCNode = aStt.GetNode().GetCntntNode()) && 0 == (pCNode = pNds->GoPrevious( &aStt )) ) { - OSL_ENSURE( false, "An StartPos kein ContentNode mehr" ); + OSL_FAIL( "An StartPos kein ContentNode mehr" ); } pCNode->MakeEndIndex( &pNew->GetPoint()->nContent ); pNew->GetPoint()->nNode = aStt; diff --git a/sw/source/filter/writer/wrt_fn.cxx b/sw/source/filter/writer/wrt_fn.cxx index 17d30d422e07..43c585a3339b 100644 --- a/sw/source/filter/writer/wrt_fn.cxx +++ b/sw/source/filter/writer/wrt_fn.cxx @@ -119,7 +119,7 @@ Writer& Out( const SwNodeFnTab pTab, SwNode& rNode, Writer & rWrt ) nId = RES_OLENODE; break; default: - OSL_ENSURE(false, "was fuer ein Node ist es denn nun?"); + OSL_FAIL("was fuer ein Node ist es denn nun?"); break; } FnNodeOut pOut; |