Add special cases for Array and Dictionary in Value::GetTypeName().

Refs #5804
This commit is contained in:
Gunnar Beutner 2014-03-20 14:28:29 +01:00
parent 012c0caeec
commit cb0c1b01d5
1 changed files with 8 additions and 3 deletions

View File

@ -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";