From 46b360beb045ecfea354f5cccb518da62bc1f7a0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 24 May 2014 22:55:00 -0400 Subject: [PATCH] CmdTags - Converted from A3 to Filter. --- src/commands/CmdTags.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdTags.cpp b/src/commands/CmdTags.cpp index e9b5c7eb8..f0e5ba2e6 100644 --- a/src/commands/CmdTags.cpp +++ b/src/commands/CmdTags.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -66,8 +67,9 @@ int CmdTags::execute (std::string& output) int quantity = tasks.size (); // Apply filter. + Filter filter; std::vector filtered; - filter (tasks, filtered); + filter.subset (filtered); // Scan all the tasks for their project name, building a map using project // names as keys. @@ -162,8 +164,9 @@ int CmdCompletionTags::execute (std::string& output) } // Apply filter. + Filter filter; std::vector filtered; - filter (tasks, filtered); + filter.subset (filtered); // Scan all the tasks for their tags, building a map using tag // names as keys.