From 7ac1a7d5e5546d6c8858a109b7c8b31e4f49d4c7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 24 May 2014 15:17:00 -0400 Subject: [PATCH] CmdStats - Converted from A3 to Filter. --- src/commands/CmdStats.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdStats.cpp b/src/commands/CmdStats.cpp index bff2c272b..f83cc5999 100644 --- a/src/commands/CmdStats.cpp +++ b/src/commands/CmdStats.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -79,9 +80,10 @@ int CmdStats::execute (std::string& output) ++backlogCount; // Get all the tasks. + Filter filter; std::vector all = context.tdb2.all_tasks (); std::vector filtered; - filter (all, filtered); + filter.subset (all, filtered); Date now; time_t earliest = time (NULL);