From 1fdcae66e82ef1cc939ea1aae801eb9eb061f640 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Thu, 18 Jul 2024 18:49:55 -0700 Subject: [PATCH] Fix #301 --- src/GraphQLResponse.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphQLResponse.cpp b/src/GraphQLResponse.cpp index dacccef0..f062a28f 100644 --- a/src/GraphQLResponse.cpp +++ b/src/GraphQLResponse.cpp @@ -896,6 +896,7 @@ IdType Value::release() } Value::Value(Type type /* = Type::Null */) + : _data { NullData {} } { switch (type) { @@ -911,10 +912,6 @@ Value::Value(Type type /* = Type::Null */) _data = { StringData {} }; break; - case Type::Null: - _data = { NullData {} }; - break; - case Type::Boolean: _data = { BooleanType { false } }; break; @@ -938,6 +935,9 @@ Value::Value(Type type /* = Type::Null */) case Type::Scalar: _data = { ScalarData {} }; break; + + default: + break; } }