From 91263ca28a09ed64c13959d339ea31f94b92484d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 14 Jun 2014 15:21:24 -0400 Subject: [PATCH] Parser - ::findOverrides removes unnecessarily lexed sub-branches. --- src/Parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Parser.cpp b/src/Parser.cpp index 6ffd2ee9c..18e9b72d9 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -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));