]> git.lyx.org Git - lyx.git/commitdiff
Use lyx::support::atoi
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 7 Nov 2004 13:27:20 +0000 (13:27 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 7 Nov 2004 13:27:20 +0000 (13:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9198 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_parser.C
src/mathed/math_sizeinset.C

index f406468cee0d5ea4dcf39a319db8e4e21138d283..7812e9545d75bbd7a5f03f7b073e8049cbf8ab3f 100644 (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>
 
index 784cc4207ad1275f8064aced4d3a01a0907e9284..f16092f44195572a8572625446f9c3e30944dec0 100644 (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);
 
                        }
 
index b6e3a8176914f88ee7310b0d6946ce333129d477..49966d2292aabeca201cfadd124471bd30418ed0 100644 (file)
 #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)))
 {}