Use lyx::support::atoi

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9198 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2004-11-07 13:27:20 +00:00
parent b049f3997a
commit 47153f7c3d
3 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2004-11-07 Lars Gullik Bjonnes <larsbj@gullik.net>
* math_parser.C (parse1): change to use lyx::support::atoi
* math_sizeinset.C (MathSizeInset): ditto
2004-08-12 André Pönitz <poenitz@gmx.net>

View File

@ -62,12 +62,12 @@ following hack as starting point to write some macros:
#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, unsigned flags,
string arg = getArg('[', ']');
if (!arg.empty())
nargs = atoi(arg.c_str());
nargs = atoi(arg);
}

View File

@ -15,17 +15,17 @@
#include "math_mathmlstream.h"
#include "math_parser.h"
#include "math_streamstr.h"
#include "support/std_ostream.h"
#ifndef CXX_GLOBAL_CSTD
using std::atoi;
#endif
#include "support/std_ostream.h"
#include "support/lyxlib.h"
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)))
{}