CmdTimesheet: Converted from strtol to std::stoi

This commit is contained in:
Paul Beckingham 2015-11-01 22:08:24 -05:00
parent 0d88df1c18
commit 02f1fa371c

View file

@ -81,7 +81,7 @@ int CmdTimesheet::execute (std::string& output)
int quantity = 1; int quantity = 1;
std::vector <std::string> words = context.cli2.getWords (); std::vector <std::string> words = context.cli2.getWords ();
if (words.size () == 1) if (words.size () == 1)
quantity = strtol (words[0].c_str (), NULL, 10);; quantity = std::stoi (words[0]);
std::stringstream out; std::stringstream out;
for (int week = 0; week < quantity; ++week) for (int week = 0; week < quantity; ++week)