summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/itrtxt.cxx2
-rw-r--r--sw/source/core/text/redlnitr.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/itrtxt.cxx b/sw/source/core/text/itrtxt.cxx
index 948a5682648f..8a09ded09c92 100644
--- a/sw/source/core/text/itrtxt.cxx
+++ b/sw/source/core/text/itrtxt.cxx
@@ -37,7 +37,7 @@ void SwTextIter::CtorInitTextIter( SwTextFrame *pNewFrame, SwTextInfo *pNewInf )
{
SwTextNode *pNode = pNewFrame->GetTextNode();
- OSL_ENSURE( pNewFrame->GetPara(), "No paragraph" );
+ assert(pNewFrame->GetPara());
CtorInitAttrIter( *pNode, pNewFrame->GetPara()->GetScriptInfo(), pNewFrame );
diff --git a/sw/source/core/text/redlnitr.cxx b/sw/source/core/text/redlnitr.cxx
index aede807d9520..a7d8427e81c4 100644
--- a/sw/source/core/text/redlnitr.cxx
+++ b/sw/source/core/text/redlnitr.cxx
@@ -86,7 +86,7 @@ void SwAttrIter::CtorInitAttrIter( SwTextNode& rTextNode, SwScriptInfo& rScrInf,
m_aMagicNo[SwFontScript::Latin] = m_aMagicNo[SwFontScript::CJK] = m_aMagicNo[SwFontScript::CTL] = nullptr;
// determine script changes if not already done for current paragraph
- OSL_ENSURE( m_pScriptInfo, "No script info available");
+ assert(m_pScriptInfo);
if ( m_pScriptInfo->GetInvalidityA() != COMPLETE_STRING )
m_pScriptInfo->InitScriptInfo( rTextNode, bRTL );