mirror of https://github.com/axmolengine/axmol.git
Merge pull request #15549 from minggo/issue_15525
use std::atof() instead
This commit is contained in:
commit
6260c67941
|
@ -31,7 +31,7 @@ THE SOFTWARE.
|
|||
#include "base/ccMacros.h"
|
||||
#include "base/CCDirector.h"
|
||||
#include "platform/CCSAXParser.h"
|
||||
#include "base/ccUtils.h"
|
||||
//#include "base/ccUtils.h"
|
||||
|
||||
#include "tinyxml2.h"
|
||||
#ifdef MINIZIP_FROM_SYSTEM
|
||||
|
@ -274,7 +274,7 @@ public:
|
|||
else if (sName == "integer")
|
||||
_curArray->push_back(Value(atoi(_curValue.c_str())));
|
||||
else
|
||||
_curArray->push_back(Value(utils::atof(_curValue.c_str())));
|
||||
_curArray->push_back(Value(std::atof(_curValue.c_str())));
|
||||
}
|
||||
else if (SAX_DICT == curState)
|
||||
{
|
||||
|
@ -283,7 +283,7 @@ public:
|
|||
else if (sName == "integer")
|
||||
(*_curDict)[_curKey] = Value(atoi(_curValue.c_str()));
|
||||
else
|
||||
(*_curDict)[_curKey] = Value(utils::atof(_curValue.c_str()));
|
||||
(*_curDict)[_curKey] = Value(std::atof(_curValue.c_str()));
|
||||
}
|
||||
|
||||
_curValue.clear();
|
||||
|
|
Loading…
Reference in New Issue