Parser
- ::findOverrides removes unnecessarily lexed sub-branches.
This commit is contained in:
@@ -368,6 +368,7 @@ void Parser::findOverrides ()
|
|||||||
if (arg.find ("rc:") == 0)
|
if (arg.find ("rc:") == 0)
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
|
(*i)->removeAllBranches ();
|
||||||
(*i)->tag ("RC");
|
(*i)->tag ("RC");
|
||||||
(*i)->attribute ("file", arg.substr (3));
|
(*i)->attribute ("file", arg.substr (3));
|
||||||
}
|
}
|
||||||
@@ -380,6 +381,7 @@ void Parser::findOverrides ()
|
|||||||
if (sep != std::string::npos)
|
if (sep != std::string::npos)
|
||||||
{
|
{
|
||||||
(*i)->unTag ("?");
|
(*i)->unTag ("?");
|
||||||
|
(*i)->removeAllBranches ();
|
||||||
(*i)->tag ("CONFIG");
|
(*i)->tag ("CONFIG");
|
||||||
(*i)->attribute ("name", arg.substr (3, sep - 3));
|
(*i)->attribute ("name", arg.substr (3, sep - 3));
|
||||||
(*i)->attribute ("value", arg.substr (sep + 1));
|
(*i)->attribute ("value", arg.substr (sep + 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user