We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45352b commit 1fdcae6Copy full SHA for 1fdcae6
src/GraphQLResponse.cpp
@@ -896,6 +896,7 @@ IdType Value::release<IdType>()
896
}
897
898
Value::Value(Type type /* = Type::Null */)
899
+ : _data { NullData {} }
900
{
901
switch (type)
902
@@ -911,10 +912,6 @@ Value::Value(Type type /* = Type::Null */)
911
912
_data = { StringData {} };
913
break;
914
- case Type::Null:
915
- _data = { NullData {} };
916
- break;
917
-
918
case Type::Boolean:
919
_data = { BooleanType { false } };
920
@@ -938,6 +935,9 @@ Value::Value(Type type /* = Type::Null */)
938
935
case Type::Scalar:
939
936
_data = { ScalarData {} };
940
937
+
+ default:
+ break;
941
942
943
0 commit comments