summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-02-15 17:27:02 +0900
committerMichael Stahl <mstahl@redhat.com>2016-02-15 13:23:28 +0000
commit393c1a62f2516c1f8265c05f71e5959f8cd89194 (patch)
tree6331ba0d1177701cd27a854bdc756152b1cc88aa /starmath
parentbb3761df8df47e24d0a23ee390c51047c9d16f3c (diff)
starmath: Replace OSL_ENSURE with assert
These pointers must be non-null, or deferencing null can happen. Change-Id: I3ced1204abb70cf7c525ea9d50c6a3a295728ab5 Reviewed-on: https://gerrit.libreoffice.org/22365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/node.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index 2ee43f9f314c..296887b6639c 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -840,8 +840,8 @@ void SmUnHorNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
SmNode *pOper = GetSubNode(bIsPostfix ? 1 : 0),
*pBody = GetSubNode(bIsPostfix ? 0 : 1);
- OSL_ENSURE(pOper, "Sm: NULL pointer");
- OSL_ENSURE(pBody, "Sm: NULL pointer");
+ assert(pOper);
+ assert(pBody);
pOper->SetSize(Fraction (rFormat.GetRelSize(SIZ_OPERATOR), 100));
pOper->Arrange(rDev, rFormat);
@@ -2524,7 +2524,7 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat)
{ aLineRect = SmRect();
for (j = 0; j < nNumCols; j++)
{ SmNode *pTmpNode = GetSubNode(i * nNumCols + j);
- OSL_ENSURE(pTmpNode, "Sm: NULL pointer");
+ assert(pTmpNode);
const SmRect &rNodeRect = pTmpNode->GetRect();