From de43e34c5ea748c0208c20380cb0d4d8f577a409 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 2 Nov 2015 18:38:31 -0500 Subject: [PATCH] Revert "CmdTimesheet: Converted from strtol to std::stoi" This reverts commit 02f1fa371c5dfd13fd08fcd7241d75698583fcaf. --- 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 fa0e49b73..3dcd9e0a5 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 = std::stoi (words[0]); + quantity = strtol (words[0].c_str (), NULL, 10);; std::stringstream out; for (int week = 0; week < quantity; ++week)