From: Mikko Rasa Date: Wed, 6 Oct 2021 21:33:30 +0000 (+0300) Subject: Also call finish on auxiliary loaders X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=65b05e818baac970e08b3b50ef46d1c4be9b394d;p=libs%2Fdatafile.git Also call finish on auxiliary loaders --- diff --git a/source/loader.cpp b/source/loader.cpp index 98a0234..5fd32c9 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -72,6 +72,8 @@ void Loader::load(Parser &p) } } finish(); + for(Loader *l: aux_loaders) + l->finish(); } void Loader::load(const Statement &st) @@ -82,6 +84,8 @@ void Loader::load(const Statement &st) for(const Statement &s: st.sub) load_statement(s); finish(); + for(Loader *l: aux_loaders) + l->finish(); } void Loader::load_direct(Parser &p, unsigned l) @@ -150,6 +154,8 @@ void Loader::load_sub_with(Loader &ldr) { ldr.load_direct(*cur_parser, cur_level+1); ldr.finish(); + for(Loader *l: ldr.aux_loaders) + l->finish(); } else if(cur_st) {