summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-03-30 11:00:10 +0200
committerMichael Stahl <mstahl@redhat.com>2017-03-30 12:25:28 +0200
commitf5686d57d8e1cf8df2e41d1b2802340f255412a7 (patch)
treea239c471b35d9dd95225062c58f9864174b76573 /sw
parentad3681df0a1757bbb2c10326d701e36d336ff10c (diff)
sw: convert to assert in atrflyin.cxx
Change-Id: I0cf6615e343b54ee5b4c212fe365dcf16234ff08
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/atrflyin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/atrflyin.cxx b/sw/source/core/txtnode/atrflyin.cxx
index ee79239ac192..eca7534bcbba 100644
--- a/sw/source/core/txtnode/atrflyin.cxx
+++ b/sw/source/core/txtnode/atrflyin.cxx
@@ -91,7 +91,7 @@ SwTextFlyCnt::SwTextFlyCnt( SwFormatFlyCnt& rAttr, sal_Int32 nStartPos )
void SwTextFlyCnt::CopyFlyFormat( SwDoc* pDoc )
{
SwFrameFormat* pFormat = GetFlyCnt().GetFrameFormat();
- OSL_ENSURE( pFormat, "von welchem Format soll ich eine Kopie erzeugen?" );
+ assert(pFormat);
// The FlyFrameFormat must be copied - CopyLayoutFormat
// (DocumentLayoutManager.cxx) creates the FlyFrameFormat and copies the
// content.
@@ -118,7 +118,7 @@ void SwTextFlyCnt::CopyFlyFormat( SwDoc* pDoc )
else
{
pos.nContent.Assign( nullptr, 0 );
- OSL_ENSURE( false, "CopyFlyFormat: Was fuer ein Anker?" );
+ assert(false);
}
aAnchor.SetAnchor( &pos );
}
@@ -215,7 +215,7 @@ SwFlyInContentFrame *SwTextFlyCnt::GetFlyFrame_( const SwFrame *pCurrFrame )
}
SwIterator<SwFlyFrame,SwFormat> aIter( *GetFlyCnt().pFormat );
- OSL_ENSURE( pCurrFrame->IsTextFrame(), "SwTextFlyCnt::GetFlyFrame_ for TextFrames only." );
+ assert(pCurrFrame->IsTextFrame());
SwFrame* pFrame = aIter.First();
if ( pFrame )
{