mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Parser
- Made use of the other ::collect variants.
This commit is contained in:
parent
f59be41389
commit
d4adf13b69
1 changed files with 2 additions and 10 deletions
|
@ -537,14 +537,10 @@ void Parser::getOverrides (
|
|||
File& rc)
|
||||
{
|
||||
std::vector <Tree*> nodes;
|
||||
collect (nodes, collectTerminated);
|
||||
collect (nodes, collectLeaf);
|
||||
std::vector <Tree*>::iterator i;
|
||||
for (i = nodes.begin (); i != nodes.end (); ++i)
|
||||
{
|
||||
// Parser override operator.
|
||||
if ((*i)->attribute ("raw") == "--")
|
||||
break;
|
||||
|
||||
if ((*i)->hasTag ("RC"))
|
||||
{
|
||||
rc = File ((*i)->attribute ("file"));
|
||||
|
@ -597,14 +593,10 @@ void Parser::applyOverrides ()
|
|||
context.debug ("Parse::applyOverrides");
|
||||
|
||||
std::vector <Tree*> nodes;
|
||||
collect (nodes, collectTerminated);
|
||||
collect (nodes, collectLeaf);
|
||||
std::vector <Tree*>::iterator i;
|
||||
for (i = nodes.begin (); i != nodes.end (); ++i)
|
||||
{
|
||||
// Parser override operator.
|
||||
if ((*i)->attribute ("raw") == "--")
|
||||
break;
|
||||
|
||||
if ((*i)->hasTag ("CONFIG"))
|
||||
{
|
||||
std::string name = (*i)->attribute ("name");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue