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";
|
return "String";
|
||||||
case ValueObject:
|
case ValueObject:
|
||||||
t = static_cast<Object::Ptr>(*this)->GetReflectionType();
|
t = static_cast<Object::Ptr>(*this)->GetReflectionType();
|
||||||
if (!t)
|
if (!t) {
|
||||||
return "Object";
|
if (IsObjectType<Array>())
|
||||||
else
|
return "Array";
|
||||||
|
else if (IsObjectType<Dictionary>())
|
||||||
|
return "Dictionary";
|
||||||
|
else
|
||||||
|
return "Object";
|
||||||
|
} else
|
||||||
return t->GetName();
|
return t->GetName();
|
||||||
default:
|
default:
|
||||||
return "Invalid";
|
return "Invalid";
|
||||||
|
|
Loading…
Reference in New Issue