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