mirror of https://github.com/Icinga/icinga2.git
parent
21e34c7f05
commit
df6deb1b3e
|
@ -159,7 +159,7 @@ bool Value::operator==(const Value& rhs) const
|
|||
{
|
||||
if (IsNumber() && rhs.IsNumber())
|
||||
return Get<double>() == rhs.Get<double>();
|
||||
else if ((IsBoolean() || IsNumber() || IsEmpty()) && (rhs.IsBoolean() || rhs.IsNumber() || rhs.IsEmpty()) && !(IsEmpty() && rhs.IsEmpty()))
|
||||
else if ((IsBoolean() || IsNumber()) && (rhs.IsBoolean() || rhs.IsNumber()) && !(IsEmpty() && rhs.IsEmpty()))
|
||||
return static_cast<double>(*this) == static_cast<double>(rhs);
|
||||
|
||||
if (IsString() && rhs.IsString())
|
||||
|
|
Loading…
Reference in New Issue