CmdTimesheet: Converted from strtol to std::stoi
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user