From 02f1fa371c5dfd13fd08fcd7241d75698583fcaf Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 1 Nov 2015 22:08:24 -0500 Subject: [PATCH] CmdTimesheet: Converted from strtol to std::stoi --- src/commands/CmdTimesheet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index 3dcd9e0a5..fa0e49b73 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -81,7 +81,7 @@ int CmdTimesheet::execute (std::string& output) int quantity = 1; std::vector 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)