[Libreoffice-commits] core.git: starmath/source

Takeshi Abe tabe at fixedpoint.jp
Mon Jul 11 09:59:59 UTC 2016


 starmath/source/cursor.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a9d273ed8e05c2524a43ebbc548e1efe0c94c4bb
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Sun Jul 10 14:01:39 2016 +0900

    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 at libreoffice.org>
    Reviewed-by: Takeshi Abe <tabe at fixedpoint.jp>

diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx
index bae4778..f27dbcd 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;


More information about the Libreoffice-commits mailing list