mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
C++11: Converted from strtoimax to std::stoi
This commit is contained in:
parent
5c8b7148b4
commit
36ad7ead41
2 changed files with 6 additions and 8 deletions
|
@ -31,7 +31,6 @@
|
|||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include <sys/stat.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <ISO8601.h>
|
||||
|
@ -564,7 +563,7 @@ std::string Config::get (const std::string& key)
|
|||
int Config::getInteger (const std::string& key)
|
||||
{
|
||||
if ((*this).find (key) != (*this).end ())
|
||||
return strtoimax ((*this)[key].c_str (), NULL, 10);
|
||||
return stoi ((*this)[key]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue