- ::findOverrides removes unnecessarily lexed sub-branches.
This commit is contained in:
Paul Beckingham 2014-06-14 15:21:24 -04:00
parent 8ed1206f41
commit 91263ca28a

View file

@ -368,6 +368,7 @@ void Parser::findOverrides ()
if (arg.find ("rc:") == 0)
{
(*i)->unTag ("?");
(*i)->removeAllBranches ();
(*i)->tag ("RC");
(*i)->attribute ("file", arg.substr (3));
}
@ -380,6 +381,7 @@ void Parser::findOverrides ()
if (sep != std::string::npos)
{
(*i)->unTag ("?");
(*i)->removeAllBranches ();
(*i)->tag ("CONFIG");
(*i)->attribute ("name", arg.substr (3, sep - 3));
(*i)->attribute ("value", arg.substr (sep + 1));