mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
ScriptGlobal::Set(): remove unused bool overrideFrozen
This commit is contained in:
parent
cd78da13d3
commit
e9846f1827
@ -31,7 +31,7 @@ Value ScriptGlobal::Get(const String& name, const Value *defaultValue)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptGlobal::Set(const String& name, const Value& value, bool overrideFrozen)
|
void ScriptGlobal::Set(const String& name, const Value& value)
|
||||||
{
|
{
|
||||||
std::vector<String> tokens = name.Split(".");
|
std::vector<String> tokens = name.Split(".");
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ void ScriptGlobal::Set(const String& name, const Value& value, bool overrideFroz
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
parent->SetFieldByName(tokens[tokens.size() - 1], value, overrideFrozen, DebugInfo());
|
parent->SetFieldByName(tokens[tokens.size() - 1], value, false, DebugInfo());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class ScriptGlobal
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Value Get(const String& name, const Value *defaultValue = nullptr);
|
static Value Get(const String& name, const Value *defaultValue = nullptr);
|
||||||
static void Set(const String& name, const Value& value, bool overrideFrozen = false);
|
static void Set(const String& name, const Value& value);
|
||||||
static void SetConst(const String& name, const Value& value);
|
static void SetConst(const String& name, const Value& value);
|
||||||
static bool Exists(const String& name);
|
static bool Exists(const String& name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user