Make icinga::Empty constant to prevent accidental changes

This commit is contained in:
Alexander A. Klimov 2024-11-11 16:31:04 +01:00
parent 7df6baf146
commit 09160ea9eb
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class String;
struct DebugInfo;
class ValidationUtils;
extern Value Empty;
extern const Value Empty;
#define DECLARE_PTR_TYPEDEFS(klass) \
typedef intrusive_ptr<klass> Ptr

View File

@ -13,7 +13,7 @@ template const bool& Value::Get<bool>() const;
template const String& Value::Get<String>() const;
template const Object::Ptr& Value::Get<Object::Ptr>() const;
Value icinga::Empty;
const Value icinga::Empty;
Value::Value(std::nullptr_t)
{ }

View File

@ -149,7 +149,7 @@ extern template const bool& Value::Get<bool>() const;
extern template const String& Value::Get<String>() const;
extern template const Object::Ptr& Value::Get<Object::Ptr>() const;
extern Value Empty;
extern const Value Empty;
Value operator+(const Value& lhs, const char *rhs);
Value operator+(const char *lhs, const Value& rhs);