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

Takeshi Abe tabe at fixedpoint.jp
Mon Nov 17 01:17:19 PST 2014


 starmath/source/parse.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit e186db5257956a88ed5ed7a9db1867b44324252d
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Mon Nov 17 10:09:46 2014 +0900

    assert that no other types than TGOPER can happen in SmParser::Oper()
    
    TOVERBRACE/TUNDERBRACE belongs to TGPRODUCT.
    
    Change-Id: I34b23858fb70f38ffd82e373e16ab68632d6e303
    Reviewed-on: https://gerrit.libreoffice.org/12508
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 4b724b6..4683c37 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1655,11 +1655,6 @@ void SmParser::Oper()
             }
             break;
 
-        case TOVERBRACE :
-        case TUNDERBRACE :
-                pNode = new SmMathSymbolNode(m_aCurToken);
-            break;
-
         case TOPER :
             NextToken();
 
@@ -1668,7 +1663,7 @@ void SmParser::Oper()
             break;
 
         default :
-            SAL_WARN("starmath", "unknown case");
+            assert(false && "unknown case");
     }
     m_aNodeStack.push(pNode);
 


More information about the Libreoffice-commits mailing list