mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- Converted ::applyOverrides to use collect.
This commit is contained in:
parent
bbff0123b0
commit
50ac189693
1 changed files with 5 additions and 1 deletions
|
@ -585,8 +585,12 @@ void Parser::getDataLocation (Path& data)
|
|||
// leaving only the plain args.
|
||||
void Parser::applyOverrides ()
|
||||
{
|
||||
context.debug ("Parse::applyOverrides");
|
||||
|
||||
std::vector <Tree*> nodes;
|
||||
collect (nodes, false);
|
||||
std::vector <Tree*>::iterator i;
|
||||
for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i)
|
||||
for (i = nodes.begin (); i != nodes.end (); ++i)
|
||||
{
|
||||
if ((*i)->hasTag ("CONFIG"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue