diff options
author | D G Turner | 2019-10-03 02:53:56 +0100 |
---|---|---|
committer | D G Turner | 2019-10-03 02:53:56 +0100 |
commit | 9308f802f3d753c4feecf00c1728bbb8a4190bd6 (patch) | |
tree | 3585d938746b423e245c9957d621df60eef22bb7 | |
parent | d618cc983a4fb561969c7a2cbf40c214e7358bb1 (diff) | |
download | scummvm-rg350-9308f802f3d753c4feecf00c1728bbb8a4190bd6.tar.gz scummvm-rg350-9308f802f3d753c4feecf00c1728bbb8a4190bd6.tar.bz2 scummvm-rg350-9308f802f3d753c4feecf00c1728bbb8a4190bd6.zip |
COMMON: Add Switch Default Cases in JSON Parser
-rw-r--r-- | common/json.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/json.cpp b/common/json.cpp index 4c63768b1c..93ab0601bd 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; |