Merge pull request #15549 from minggo/issue_15525

use std::atof() instead
This commit is contained in:
minggo 2016-05-04 09:38:42 +08:00
commit 6260c67941
1 changed files with 3 additions and 3 deletions

View File

@ -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();