Reader::Parse{Array,Object}: simplify switch

Closes #223.
This commit is contained in:
Philipp A. Hartmann 2015-01-11 18:46:58 +01:00
parent 8c8ce36957
commit 0ee38bc918

View File

@ -512,7 +512,6 @@ private:
case '}':
if (!handler.EndObject(memberCount))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
else
return;
default: RAPIDJSON_PARSE_ERROR(kParseErrorObjectMissCommaOrCurlyBracket, is.Tell());
}
@ -549,7 +548,6 @@ private:
case ']':
if (!handler.EndArray(elementCount))
RAPIDJSON_PARSE_ERROR(kParseErrorTermination, is.Tell());
else
return;
default: RAPIDJSON_PARSE_ERROR(kParseErrorArrayMissCommaOrSquareBracket, is.Tell());
}