mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdTimesheet: Converted from strtol to std::stoi
This commit is contained in:
parent
0d88df1c18
commit
02f1fa371c
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ int CmdTimesheet::execute (std::string& output)
|
|||
int quantity = 1;
|
||||
std::vector <std::string> words = context.cli2.getWords ();
|
||||
if (words.size () == 1)
|
||||
quantity = strtol (words[0].c_str (), NULL, 10);;
|
||||
quantity = std::stoi (words[0]);
|
||||
|
||||
std::stringstream out;
|
||||
for (int week = 0; week < quantity; ++week)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue