Skip to content
Snippets Groups Projects
Commit 8e94a5f6 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Station: local variable, use std ns.

parent b51c984d
No related branches found
No related tags found
No related merge requests found
...@@ -44,18 +44,17 @@ Station::~Station() ...@@ -44,18 +44,17 @@ Station::~Station()
Station* Station::createStation(const std::string & line) Station* Station::createStation(const std::string & line)
{ {
std::list<std::string>::const_iterator it;
Station* station = new Station(); Station* station = new Station();
std::list<std::string> fields = BaseLib::splitString(line, '\t'); std::list<std::string> fields = BaseLib::splitString(line, '\t');
if (fields.size() >= 3) if (fields.size() >= 3)
{ {
it = fields.begin(); auto it = fields.begin();
station->_name = *it; station->_name = *it;
(*station)[0] = strtod((BaseLib::replaceString(",", ".", *(++it))).c_str(), nullptr); (*station)[0] = std::strtod((BaseLib::replaceString(",", ".", *(++it))).c_str(), nullptr);
(*station)[1] = strtod((BaseLib::replaceString(",", ".", *(++it))).c_str(), nullptr); (*station)[1] = std::strtod((BaseLib::replaceString(",", ".", *(++it))).c_str(), nullptr);
if (++it != fields.end()) if (++it != fields.end())
(*station)[2] = strtod((BaseLib::replaceString(",", ".", *it)).c_str(), nullptr); (*station)[2] = std::strtod((BaseLib::replaceString(",", ".", *it)).c_str(), nullptr);
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment