summaryrefslogtreecommitdiff
path: root/sw/inc/dcontact.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/dcontact.hxx')
-rw-r--r--sw/inc/dcontact.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/inc/dcontact.hxx b/sw/inc/dcontact.hxx
index eb02ac54bd9c..6dc76cb196c6 100644
--- a/sw/inc/dcontact.hxx
+++ b/sw/inc/dcontact.hxx
@@ -152,8 +152,7 @@ public:
about the object (Writer fly frame resp. drawing object) */
const SwFmtAnchor& GetAnchorFmt() const
{
- OSL_ENSURE( GetFmt(),
- "<SwContact::GetAnchorFmt()> - no frame format -> crash" );
+ assert( GetFmt() );
return GetFmt()->GetAnchor();
}
@@ -167,9 +166,7 @@ public:
const SwPosition& GetCntntAnchor() const
{
- OSL_ENSURE( GetAnchorFmt().GetCntntAnchor(),
- "<SwContact::GetCntntAnchor()> - no content anchor -> crash" );
-
+ assert( GetAnchorFmt().GetCntntAnchor() );
return *(GetAnchorFmt().GetCntntAnchor());
}