X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FConfig.cc;h=f844f8a0ec04181d37104a4648d2180cacb664c8;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=77d712ac4ba0b98803362e90209bfae1a3390abb;hpb=958bdb52c39fa39f4ef91cafd9628bcb4f85a03c;p=senf.git diff --git a/Utils/Console/Config.cc b/Utils/Console/Config.cc index 77d712a..f844f8a 100644 --- a/Utils/Console/Config.cc +++ b/Utils/Console/Config.cc @@ -57,6 +57,12 @@ senf::console::detail::RestrictedExecutor::operator()(std::ostream & output, execute(output, command); } +prefix_ senf::console::GenericNode & +senf::console::detail::RestrictedExecutor::getNode(ParseCommandInfo const & command) +{ + return executor_.getNode(command); +} + prefix_ bool senf::console::detail::RestrictedExecutor::parsed(GenericNode & node) const { @@ -120,9 +126,8 @@ prefix_ void senf::console::ConfigBundle::parse(DirectoryNode & restrict) prefix_ void senf::console::ConfigBundle::parseInternal() { - Sources::const_iterator i (sources_.begin()); - Sources::const_iterator const i_end (sources_.end()); - for (; i != i_end; ++i) + // It is valid to add additional sources at the end while parsing ... + for (Sources::const_iterator i (sources_.begin()); i != sources_.end(); ++i) (*i)->parse(executor_); }