Using zero-initializer for defaults in the Json Serializer instead of explicit values

This commit is contained in:
AMZN-koppersr
2021-06-16 17:26:14 -07:00
parent c482c17c9e
commit 1b1a5a28f4
3 changed files with 3 additions and 3 deletions
@@ -84,7 +84,7 @@ namespace AZ
if (IsExplicitDefault(inputValue))
{
*valAsBool = false;
*valAsBool = {};
return context.Report(JSR::Tasks::ReadField, JSR::Outcomes::DefaultsUsed, "Boolean value set to default of 'false'.");
}
@@ -72,7 +72,7 @@ namespace AZ
if (isExplicitDefault)
{
*outputValue = 0.0f;
*outputValue = {};
return context.Report(JSR::Tasks::ReadField, JSR::Outcomes::DefaultsUsed, "Floating point value set to default of 0.0.");
}
@@ -67,7 +67,7 @@ namespace AZ
if (isDefaultValue)
{
*outputValue = 0;
*outputValue = {};
return context.Report(JSR::Tasks::ReadField, JSR::Outcomes::DefaultsUsed, "Integer value set to default of zero.");
}