summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2016-07-10 14:01:39 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2016-07-11 09:59:38 +0000
commita9d273ed8e05c2524a43ebbc548e1efe0c94c4bb (patch)
tree4f22f9b8fe1fccb34311f49698e62dc5218af9a5
parentdead5dc1ae3baab5e25d641322d138dd3d242bff (diff)
starmath: Prefer assert to SAL_WARN here
as defined enum cases are exhausted. Change-Id: I6564cc0cd64d593f6aa02f0651ecb490bf7845bd Reviewed-on: https://gerrit.libreoffice.org/27081 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
-rw-r--r--starmath/source/cursor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index bae47789bd31..f27dbcd3a0d1 100644
--- a/starmath/source/cursor.cxx
+++ b/starmath/source/cursor.cxx
@@ -67,7 +67,7 @@ void SmCursor::Move(OutputDevice* pDev, SmMovementDirection direction, bool bMov
}
break;
default:
- SAL_WARN("starmath", "Movement direction not supported!");
+ assert(false);
}
if(NewPos){
mpPosition = NewPos;