Shell
- Converted from A3 to A3t. Still doesn't work though.
This commit is contained in:
@@ -109,16 +109,16 @@ int main (int argc, const char** argv)
|
|||||||
|
|
||||||
// Make a copy because context.clear will delete them.
|
// Make a copy because context.clear will delete them.
|
||||||
std::string permanent_overrides;
|
std::string permanent_overrides;
|
||||||
std::vector <Arg>::iterator i;
|
std::vector <Tree*>::iterator i;
|
||||||
for (i = context.a3.begin (); i != context.a3.end (); ++i)
|
for (i = context.a3t.tree ()->_branches.begin (); i != context.a3t.tree ()->_branches.end (); ++i)
|
||||||
{
|
{
|
||||||
if (i->_category == Arg::cat_rc ||
|
if ((*i)->hasTag ("RC") ||
|
||||||
i->_category == Arg::cat_override)
|
(*i)->hasTag ("CONFIG"))
|
||||||
{
|
{
|
||||||
if (i != context.a3.begin ())
|
if (i != context.a3t.tree ()->_branches.begin ())
|
||||||
permanent_overrides += " ";
|
permanent_overrides += " ";
|
||||||
|
|
||||||
permanent_overrides += i->_raw;
|
permanent_overrides += (*i)->attribute ("raw");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user