atoX functions replaced with strtoX implementation.

This commit is contained in:
Roland Jax
2014-04-27 20:40:27 +02:00
parent ec1ce841d0
commit a8c8c3bd1b
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -142,13 +142,13 @@ void Appl::addParam(const char* name, const std::string arg, Datatype datatype)
m_params[name] = true;
break;
case type_int:
m_params[name] = atoi(arg.c_str());
m_params[name] = strtol(arg.c_str(), NULL, 10);
break;
case type_long:
m_params[name] = atol(arg.c_str());
m_params[name] = strtol(arg.c_str(), NULL, 10);
break;
case type_float:
m_params[name] = (float) atof(arg.c_str());
m_params[name] = static_cast<float>(strtod(arg.c_str(), NULL));
break;
case type_string:
m_params[name] = arg.c_str();