summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-05-21 11:07:15 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-05-23 04:38:04 +0000
commitda68f03bb6f7806440c8aba3163b5196f1c98738 (patch)
tree554d72a756800bfcfc8a382cc5d0e975cc5c89ff /starmath
parent366de0553beb0f545b3cb0a74831ae120f01c7d6 (diff)
starmath: This should be an assert()
Change-Id: Ia8dd75512168fd0775a8019fc514627a7353b056 Reviewed-on: https://gerrit.libreoffice.org/25231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cursor.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index 58a2a63fc66e..262d2bd85062 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -1073,12 +1073,8 @@ void SmCursor::InsertElement(SmFormulaElement element){
token.aText = "\"%\"";
pNewNode = new SmMathSymbolNode(token);
}break;
- default:
- SAL_WARN("starmath", "Element unknown!");
}
- OSL_ENSURE(pNewNode != nullptr, "No new node was created!");
- if(!pNewNode)
- return;
+ assert(pNewNode);
//Prepare the new node
pNewNode->Prepare(mpDocShell->GetFormat(), *mpDocShell);