From: André Pönitz Date: Wed, 20 Mar 2002 07:54:14 +0000 (+0000) Subject: fix compilation with g++ 3.0.2 X-Git-Tag: 1.6.10~19616 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=546021819be846e583467fbae8c9cbd4cee02bb4;p=features.git fix compilation with g++ 3.0.2 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3785 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index e62ac1920d..80796a9c61 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -48,7 +48,6 @@ #include "math_support.h" #include -#include #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;