- Converted from A3 to A3t.  Still doesn't work though.
This commit is contained in:
Paul Beckingham 2014-04-26 11:53:05 -07:00
parent 22c5bc28e1
commit f89f5469a4

View file

@ -109,16 +109,16 @@ int main (int argc, const char** argv)
// Make a copy because context.clear will delete them.
std::string permanent_overrides;
std::vector <Arg>::iterator i;
for (i = context.a3.begin (); i != context.a3.end (); ++i)
std::vector <Tree*>::iterator i;
for (i = context.a3t.tree ()->_branches.begin (); i != context.a3t.tree ()->_branches.end (); ++i)
{
if (i->_category == Arg::cat_rc ||
i->_category == Arg::cat_override)
if ((*i)->hasTag ("RC") ||
(*i)->hasTag ("CONFIG"))
{
if (i != context.a3.begin ())
if (i != context.a3t.tree ()->_branches.begin ())
permanent_overrides += " ";
permanent_overrides += i->_raw;
permanent_overrides += (*i)->attribute ("raw");
}
}