issue #2790: Don’t make an assert if converting Value failed.

This commit is contained in:
James Chen 2013-12-03 16:24:24 +08:00
parent 5eb9446b80
commit f01f56113c
1 changed files with 0 additions and 5 deletions

View File

@ -321,31 +321,26 @@ public:
ValueArray& asArray()
{
CCASSERT(_type == Type::ARRAY, "");
return _arrData;
}
const ValueArray& asArray() const
{
CCASSERT(_type == Type::ARRAY, "");
return _arrData;
}
ValueDict& asDict()
{
CCASSERT(_type == Type::DICTIONARY, "");
return _dictData;
}
const ValueDict& asDict() const
{
CCASSERT(_type == Type::DICTIONARY, "");
return _dictData;
}
IntValueDict& asIntKeyDict()
{
CCASSERT(_type == Type::INT_KEY_DICT, "");
return _intKeyDictData;
}