TDB2 Conversion

- Migrated several commands over to use TDB2.  Have to start somewhere.
This commit is contained in:
Paul Beckingham
2011-08-23 00:47:46 -04:00
parent e573801517
commit 1dc2257156
8 changed files with 49 additions and 49 deletions

View File

@@ -267,7 +267,7 @@ bool Command::displays_id () const
////////////////////////////////////////////////////////////////////////////////
// Filter a specific list of tasks.
void Command::filter (std::vector <Task>& input, std::vector <Task>& output)
void Command::filter (const std::vector <Task>& input, std::vector <Task>& output)
{
context.timer_filter.start ();
@@ -278,7 +278,7 @@ void Command::filter (std::vector <Task>& input, std::vector <Task>& output)
{
E9 e (filt);
std::vector <Task>::iterator task;
std::vector <Task>::const_iterator task;
for (task = input.begin (); task != input.end (); ++task)
if (e.evalFilter (*task))
output.push_back (*task);