diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-04-26 17:17:39 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-04-26 17:30:35 +0200 |
commit | 7e0871094d0d820d2dc72ee57c38e7af3fb6505d (patch) | |
tree | 2f7b5d1b4a979f08278814bb2d777f3f2fc2af5f /sw | |
parent | e15b8997f0d2e54fa7b8345063755616d0b100b9 (diff) |
sw: convert some OSL_ENSURE to assert in ftnfrm.cxx
Change-Id: I1e37606a767a6399965ede05beb14abffd07be89
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/ftnfrm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx index 775059c5d966..9f0cdbf04c10 100644 --- a/sw/source/core/layout/ftnfrm.cxx +++ b/sw/source/core/layout/ftnfrm.cxx @@ -835,7 +835,7 @@ void sw_RemoveFootnotes( SwFootnoteBossFrame* pBoss, bool bPageOnly, bool bEndNo if ( pCont ) { SwFootnoteFrame *pFootnote = static_cast<SwFootnoteFrame*>(pCont->Lower()); - OSL_ENSURE( pFootnote, "Footnote content without footnote." ); + assert(pFootnote); if ( bPageOnly ) while ( pFootnote->GetMaster() ) pFootnote = pFootnote->GetMaster(); @@ -955,10 +955,10 @@ SwFootnoteContFrame *SwFootnoteBossFrame::FindFootnoteCont() if ( pFrame ) { SwFrame *pFootnote = pFrame->GetLower(); - OSL_ENSURE( pFootnote, "Content without footnote." ); + assert(pFootnote); while ( pFootnote ) { - OSL_ENSURE( pFootnote->IsFootnoteFrame(), "Neighbor of footnote is not a footnote." ); + assert(pFootnote->IsFootnoteFrame() && "Neighbor of footnote must be a footnote"); pFootnote = pFootnote->GetNext(); } } |