- Converted ::applyOverrides to use collect.
This commit is contained in:
Paul Beckingham 2014-08-17 12:18:01 -04:00
parent bbff0123b0
commit 50ac189693

View file

@ -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"))
{