From 683095a1653f9bff6e284a68c3e60db9188f2b43 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 10 Feb 2023 15:47:25 +0100 Subject: [PATCH] Make globals.Internal values non-const by default That namespace is internal anyway. Previous commit, icinga2 console: Error: Constants must not be removed. This commit fixes it. --- lib/base/scriptframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/scriptframe.cpp b/lib/base/scriptframe.cpp index 7476f13e6..7a7f44c5f 100644 --- a/lib/base/scriptframe.cpp +++ b/lib/base/scriptframe.cpp @@ -36,7 +36,7 @@ INITIALIZE_ONCE_WITH_PRIORITY([]() { l_StatsNS = new Namespace(true); globalNS->Set("StatsFunctions", l_StatsNS, true); - globalNS->Set("Internal", new Namespace(true), true); + globalNS->Set("Internal", new Namespace(), true); }, InitializePriority::CreateNamespaces); INITIALIZE_ONCE_WITH_PRIORITY([]() {