mirror of https://github.com/Icinga/icinga2.git
Add special cases for Array and Dictionary in Value::GetTypeName().
Refs #5804
This commit is contained in:
parent
012c0caeec
commit
cb0c1b01d5
|
@ -220,9 +220,14 @@ String Value::GetTypeName(void) const
|
|||
return "String";
|
||||
case ValueObject:
|
||||
t = static_cast<Object::Ptr>(*this)->GetReflectionType();
|
||||
if (!t)
|
||||
return "Object";
|
||||
if (!t) {
|
||||
if (IsObjectType<Array>())
|
||||
return "Array";
|
||||
else if (IsObjectType<Dictionary>())
|
||||
return "Dictionary";
|
||||
else
|
||||
return "Object";
|
||||
} else
|
||||
return t->GetName();
|
||||
default:
|
||||
return "Invalid";
|
||||
|
|
Loading…
Reference in New Issue