]> granicus.if.org Git - icinga2/commitdiff
Make ConfigCompiler::HandleInclude return an inline dictionary
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Dec 2014 10:30:42 +0000 (11:30 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 10 Dec 2014 10:30:42 +0000 (11:30 +0100)
fixes #8047

lib/config/configcompiler.cpp

index 1e4f47bd85a83548d205d9eaab4af8fca8e865be..b9b6369f3cf983947815fc1e4eccbb60bff67c93 100644 (file)
@@ -140,7 +140,9 @@ Expression *ConfigCompiler::HandleInclude(const String& include, bool search, co
                BOOST_THROW_EXCEPTION(std::invalid_argument(msgbuf.str()));
        }
 
-       return new DictExpression(expressions);
+       DictExpression *expr = new DictExpression(expressions);
+       expr->MakeInline();
+       return expr;
 }
 
 /**