From 546021819be846e583467fbae8c9cbd4cee02bb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 20 Mar 2002 07:54:14 +0000 Subject: [PATCH] fix compilation with g++ 3.0.2 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3785 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.2