Dates: Converted from strtol to std::stoi

This commit is contained in:
Paul Beckingham 2015-11-01 21:41:47 -05:00
parent 8e214d1b14
commit d295755bb7

View file

@ -386,12 +386,12 @@ bool namedDates (const std::string& name, Variant& value)
if (Lexer::isDigit (name[1]))
{
number = strtol (name.substr (0, 2).c_str (), NULL, 10);
number = std::stoi (name.substr (0, 2));
ordinal = Lexer::lowerCase (name.substr (2));
}
else
{
number = strtol (name.substr (0, 1).c_str (), NULL, 10);
number = std::stoi (name.substr (0, 1));
ordinal = Lexer::lowerCase (name.substr (1));
}