mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-05 04:57:21 +02:00
Use nullptr instead lf C-styled NULL
This commit is contained in:
parent
24634f2d15
commit
5cdbe6d019
22 changed files with 56 additions and 56 deletions
|
@ -250,7 +250,7 @@ std::string CmdEdit::formatTask (Task task, const std::string& dateformat)
|
|||
|
||||
for (auto& anno : task.getAnnotations ())
|
||||
{
|
||||
Datetime dt (strtol (anno.first.substr (11).c_str (), NULL, 10));
|
||||
Datetime dt (strtol (anno.first.substr (11).c_str (), nullptr, 10));
|
||||
before << " Annotation: " << dt.toString (dateformat)
|
||||
<< " -- " << json::encode (anno.second) << '\n';
|
||||
}
|
||||
|
@ -653,7 +653,7 @@ void CmdEdit::parseTask (Task& task, const std::string& after, const std::string
|
|||
if (dep.length () >= 7)
|
||||
task.addDependency (dep);
|
||||
else
|
||||
task.addDependency ((int) strtol (dep.c_str (), NULL, 10));
|
||||
task.addDependency ((int) strtol (dep.c_str (), nullptr, 10));
|
||||
}
|
||||
|
||||
// UDAs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue