[Scummvm-git-logs] scummvm master -> 9308f802f3d753c4feecf00c1728bbb8a4190bd6
digitall
547637+digitall at users.noreply.github.com
Thu Oct 3 03:57:33 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9308f802f3 COMMON: Add Switch Default Cases in JSON Parser
Commit: 9308f802f3d753c4feecf00c1728bbb8a4190bd6
https://github.com/scummvm/scummvm/commit/9308f802f3d753c4feecf00c1728bbb8a4190bd6
Author: D G Turner (digitall at scummvm.org)
Date: 2019-10-03T02:53:56+01:00
Commit Message:
COMMON: Add Switch Default Cases in JSON Parser
Changed paths:
common/json.cpp
diff --git a/common/json.cpp b/common/json.cpp
index 4c63768..93ab060 100644
--- a/common/json.cpp
+++ b/common/json.cpp
@@ -702,6 +702,8 @@ JSONValue::JSONValue(const JSONValue &source) {
break;
}
+ default:
+ // fallthrough intended
case JSONType_Null:
// Nothing to do.
break;
@@ -1021,6 +1023,8 @@ String JSONValue::stringifyImpl(size_t const indentDepth) const {
String const indentStr1 = indent(indentDepth1);
switch (_type) {
+ default:
+ // fallthrough intended
case JSONType_Null:
ret_string = "null";
break;
More information about the Scummvm-git-logs
mailing list