diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 4 | ||||
-rw-r--r-- | starmath/source/ooxmlexport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/rtfexport.cxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 6abd5be7f198..0567181f6df6 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -668,7 +668,7 @@ void SmXMLExport::ExportExpression(const SmNode *pNode, int nLevel, void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel) { - OSL_ENSURE(pNode->GetNumSubNodes()==3,"Bad Fraction"); + assert(pNode->GetNumSubNodes() == 3); const SmNode *pNum = pNode->GetSubNode(0); const SmNode *pDenom = pNode->GetSubNode(2); if (pNum->GetType() == NALIGN && pNum->GetToken().eType != TALIGNC) @@ -692,7 +692,7 @@ void SmXMLExport::ExportBinaryVertical(const SmNode *pNode, int nLevel) void SmXMLExport::ExportBinaryDiagonal(const SmNode *pNode, int nLevel) { - OSL_ENSURE(pNode->GetNumSubNodes()==3, "Bad Slash"); + assert(pNode->GetNumSubNodes() == 3); if (pNode->GetToken().eType == TWIDESLASH) { diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index b387bd649716..23529ebd8906 100644 --- a/starmath/source/ooxmlexport.cxx +++ b/starmath/source/ooxmlexport.cxx @@ -140,7 +140,7 @@ void SmOoxmlExport::HandleFractions( const SmNode* pNode, int nLevel, const char m_pSerializer->singleElementNS( XML_m, XML_type, FSNS( XML_m, XML_val ), type, FSEND ); m_pSerializer->endElementNS( XML_m, XML_fPr ); } - OSL_ASSERT( pNode->GetNumSubNodes() == 3 ); + assert( pNode->GetNumSubNodes() == 3 ); m_pSerializer->startElementNS( XML_m, XML_num, FSEND ); HandleNode( pNode->GetSubNode( 0 ), nLevel + 1 ); m_pSerializer->endElementNS( XML_m, XML_num ); diff --git a/starmath/source/rtfexport.cxx b/starmath/source/rtfexport.cxx index d8f942820486..b0e947d15b81 100644 --- a/starmath/source/rtfexport.cxx +++ b/starmath/source/rtfexport.cxx @@ -77,7 +77,7 @@ void SmRtfExport::HandleFractions(const SmNode* pNode, int nLevel, const char* t m_pBuffer->append("}"); // mtype m_pBuffer->append("}"); // mfPr } - OSL_ASSERT(pNode->GetNumSubNodes() == 3); + assert(pNode->GetNumSubNodes() == 3); m_pBuffer->append("{" LO_STRING_SVTOOLS_RTF_MNUM " "); HandleNode(pNode->GetSubNode(0), nLevel + 1); m_pBuffer->append("}"); // mnum |