This makes mathed use lyx::support::atoi as rest of lyx does.
Index: math_parser.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_parser.C,v retrieving revision 1.305 diff -u -p -w -r1.305 math_parser.C --- math_parser.C 16 Sep 2004 20:37:34 -0000 1.305 +++ math_parser.C 7 Nov 2004 13:23:54 -0000 @@ -62,12 +62,12 @@ following hack as starting point to writ #include "lyxlex.h" #include "debug.h" +#include "support/lyxlib.h" #include <sstream> -#ifndef CXX_GLOBAL_CSTD -using std::atoi; -#endif +using lyx::support::atoi; + using std::endl; using std::fill; @@ -797,7 +797,7 @@ void Parser::parse1(MathGridInset & grid string arg = getArg('[', ']'); if (!arg.empty()) - nargs = atoi(arg.c_str()); + nargs = atoi(arg); } Index: math_sizeinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_sizeinset.C,v retrieving revision 1.42 diff -u -p -w -r1.42 math_sizeinset.C --- math_sizeinset.C 30 Jan 2004 11:41:12 -0000 1.42 +++ math_sizeinset.C 7 Nov 2004 13:23:54 -0000 @@ -15,17 +15,17 @@ #include "math_mathmlstream.h" #include "math_parser.h" #include "math_streamstr.h" + #include "support/std_ostream.h" +#include "support/lyxlib.h" -#ifndef CXX_GLOBAL_CSTD -using std::atoi; -#endif +using lyx::support::atoi; using std::auto_ptr; MathSizeInset::MathSizeInset(latexkeys const * l) - : MathNestInset(1), key_(l), style_(Styles(atoi(l->extra.c_str()))) + : MathNestInset(1), key_(l), style_(Styles(atoi(l->extra))) {}
-- Lgb