summaryrefslogtreecommitdiff
path: root/sw/inc/dcontact.hxx
diff options
context:
space:
mode:
authorHonza Havlíček <havlicek.honza@gmail.com>2013-07-27 03:14:27 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-07-30 13:45:03 +0000
commitd7b48d03e19d2c05ecf2143b1547ceab5ab89e5c (patch)
tree3a5b49e0f660c3e99321cd268eae1bec68b3a855 /sw/inc/dcontact.hxx
parent5f7860bc2735bad3cd27552867ce25096835dcbb (diff)
fdo#43157 - Clean up OSL_ENSURE
Change-Id: I5ba15eaa82479aa68b98ce4dcd7827f31b239c98 Reviewed-on: https://gerrit.libreoffice.org/5139 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
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());
}