- Converted from A3 to Filter.
This commit is contained in:
Paul Beckingham 2014-05-24 22:55:00 -04:00
parent 7a196bac9c
commit 46b360beb0

View file

@ -29,6 +29,7 @@
#include <vector>
#include <stdlib.h>
#include <Context.h>
#include <Filter.h>
#include <ViewText.h>
#include <CmdTags.h>
#include <text.h>
@ -66,8 +67,9 @@ int CmdTags::execute (std::string& output)
int quantity = tasks.size ();
// Apply filter.
Filter filter;
std::vector <Task> 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 <Task> filtered;
filter (tasks, filtered);
filter.subset (filtered);
// Scan all the tasks for their tags, building a map using tag
// names as keys.