]> git.lyx.org Git - features.git/commitdiff
fix compilation with g++ 3.0.2
authorAndré Pönitz <poenitz@gmx.net>
Wed, 20 Mar 2002 07:54:14 +0000 (07:54 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 20 Mar 2002 07:54:14 +0000 (07:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3785 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index e62ac1920d6f343362eaed166eae004ff5ad6eff..80796a9c6183951ca45d48dfda0c3b6031e4f303 100644 (file)
@@ -48,7 +48,6 @@
 #include "math_support.h"
 
 #include <algorithm>
-#include <cctype>
 
 #define FILEDEBUG 0
 
@@ -56,7 +55,6 @@ using std::endl;
 using std::min;
 using std::max;
 using std::swap;
-using std::isalnum;
 using std::vector;
 using std::ostringstream;
 
@@ -1451,7 +1449,7 @@ bool MathCursor::interpret(char c)
        }
 
 /*
-       if (strchr("{}", c)) {
+       if (c == '{' || c == '}', c)) {
                insert(c, LM_TC_TEX);
                return true;
        }
@@ -1466,7 +1464,7 @@ bool MathCursor::interpret(char c)
                return true;
        }
 
-       if (strchr("$%", c)) {
+       if (c == '$' || c == '%') {
                insert(MathAtom(new MathSpecialCharInset(c)));
                lastcode_ = LM_TC_VAR;
                return true;