summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-03-24 17:06:36 +0100
committerMichael Stahl <mstahl@redhat.com>2017-03-24 18:00:45 +0100
commita18fa6973fbfac8f9da738a2fbc5da3cb698d108 (patch)
tree38842670517ed64353b5f9aead594a38ec894991 /sw
parentf8a3748c9bac4b323a6eea8b079949c82af8703e (diff)
sw: convert to assert in SwAccessiblePage
Change-Id: I3bb8430be2460fa72938a4952670d3d92b12e123
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/accpage.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx
index 91a7e3f0d58b..68908380ed7b 100644
--- a/sw/source/core/access/accpage.cxx
+++ b/sw/source/core/access/accpage.cxx
@@ -113,9 +113,9 @@ SwAccessiblePage::SwAccessiblePage(std::shared_ptr<SwAccessibleMap> const& pInit
: SwAccessibleContext( pInitMap, AccessibleRole::PANEL, pFrame )
, bIsSelected( false )
{
- OSL_ENSURE( pFrame != nullptr, "need frame" );
- OSL_ENSURE( pInitMap != nullptr, "need map" );
- OSL_ENSURE( pFrame->IsPageFrame(), "need page frame" );
+ assert(pFrame != nullptr);
+ assert(pInitMap != nullptr);
+ assert(pFrame->IsPageFrame());
OUString sPage = OUString::number(
static_cast<const SwPageFrame*>( GetFrame() )->GetPhyPageNum() );