mirror of https://github.com/Icinga/icinga2.git
Merge pull request #10224 from Icinga/Empty-constant
Make icinga::Empty constant to prevent accidental changes
This commit is contained in:
commit
d68ee3fcf8
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{ }
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue