mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
DOM: Converted from strtol to std::stoi
This commit is contained in:
parent
7158942d03
commit
7c5055de7a
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ bool DOM::get (const std::string& name, const Task& task, Variant& value)
|
||||||
std::map <std::string, std::string> annos;
|
std::map <std::string, std::string> annos;
|
||||||
ref.getAnnotations (annos);
|
ref.getAnnotations (annos);
|
||||||
|
|
||||||
int a = strtol (elements[1].c_str (), NULL, 10);
|
int a = std::stoi (elements[1]);
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
// Count off the 'a'th annotation.
|
// Count off the 'a'th annotation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue