mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Use nullptr instead lf C-styled NULL
This commit is contained in:
parent
6f19a3fbae
commit
511a235215
22 changed files with 56 additions and 56 deletions
|
@ -89,7 +89,7 @@ int CmdStats::execute (std::string& output)
|
|||
filter.subset (all, filtered);
|
||||
|
||||
Datetime now;
|
||||
time_t earliest = time (NULL);
|
||||
time_t earliest = time (nullptr);
|
||||
time_t latest = 1;
|
||||
int totalT = 0;
|
||||
int deletedT = 0;
|
||||
|
@ -123,13 +123,13 @@ int CmdStats::execute (std::string& output)
|
|||
if (task.is_blocked) ++blockedT;
|
||||
if (task.is_blocking) ++blockingT;
|
||||
|
||||
time_t entry = strtol (task.get ("entry").c_str (), NULL, 10);
|
||||
time_t entry = strtol (task.get ("entry").c_str (), nullptr, 10);
|
||||
if (entry < earliest) earliest = entry;
|
||||
if (entry > latest) latest = entry;
|
||||
|
||||
if (status == Task::completed)
|
||||
{
|
||||
time_t end = strtol (task.get ("end").c_str (), NULL, 10);
|
||||
time_t end = strtol (task.get ("end").c_str (), nullptr, 10);
|
||||
daysPending += (end - entry) / 86400.0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue