Filter
- Corrected use of rc.debug.parser. - Added notes for fixing ::pendingOnly.
This commit is contained in:
@@ -146,7 +146,7 @@ void Filter::subset (std::vector <Task>& output)
|
|||||||
|
|
||||||
// Debug output from Eval during compilation is useful. During evaluation
|
// Debug output from Eval during compilation is useful. During evaluation
|
||||||
// it is mostly noise.
|
// it is mostly noise.
|
||||||
eval.debug (context.config.getInteger ("debug.parser") >= 1 ? true : false);
|
eval.debug (context.config.getInteger ("debug.parser") >= 2 ? true : false);
|
||||||
eval.compileExpression (filterExpr);
|
eval.compileExpression (filterExpr);
|
||||||
eval.debug (false);
|
eval.debug (false);
|
||||||
|
|
||||||
@@ -225,6 +225,9 @@ bool Filter::pendingOnly ()
|
|||||||
int countOr = 0;
|
int countOr = 0;
|
||||||
int countXor = 0;
|
int countXor = 0;
|
||||||
|
|
||||||
|
// TODO Use an int index, and ensure that 'status', '==' and 'pending/waiting'
|
||||||
|
// are consecutive.
|
||||||
|
|
||||||
std::vector <A>::iterator a;
|
std::vector <A>::iterator a;
|
||||||
for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a)
|
for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user