fix compilation with g++ 3.0.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3785 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-03-20 07:54:14 +00:00
parent 724cbeaa42
commit 546021819b

View 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;