mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-27 12:16:21 +02:00
Build
- Added missing includes.
This commit is contained in:
parent
9e3c6f5bc1
commit
a1dee148b4
2 changed files with 4 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
|
@ -117,7 +118,7 @@ int CmdAdd::execute (const std::string&, std::string& output)
|
||||||
std::vector <std::string>::iterator i;
|
std::vector <std::string>::iterator i;
|
||||||
for (i = deps.begin (); i != deps.end (); i++)
|
for (i = deps.begin (); i != deps.end (); i++)
|
||||||
{
|
{
|
||||||
int id = atoi (i->c_str ());
|
int id = strtol (i->c_str (), NULL, 10);
|
||||||
if (id < 0)
|
if (id < 0)
|
||||||
context.task.removeDependency (-id);
|
context.task.removeDependency (-id);
|
||||||
else
|
else
|
||||||
|
|
|
@ -26,6 +26,8 @@
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <Date.h>
|
#include <Date.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue