@@ -377,7 +377,7 @@ bool ParseMaterialXValue(const std::string &str, T *value, std::string *err) {
377377 str.size (), /* swap endian */ false );
378378 tinyusdz::ascii::AsciiParser parser (&sr);
379379
380- T val;
380+ T val{} ;
381381
382382 if (!ParseValue (parser, val, err)) {
383383 return false ;
@@ -522,14 +522,14 @@ static bool ConvertPlace2d(const pugi::xml_node &node, PrimSpec &ps,
522522 }
523523
524524 if (pugi::xml_attribute pivot_attr = node.attribute (" pivot" )) {
525- value::float2 value;
525+ value::float2 value{} ;
526526 if (!ParseMaterialXValue (pivot_attr.as_string (), &value, err)) {
527527 ps.props ()[" inputs:pivot" ] = Property (Attribute::Uniform (value));
528528 }
529529 }
530530
531531 if (pugi::xml_attribute scale_attr = node.attribute (" scale" )) {
532- value::float2 value;
532+ value::float2 value{} ;
533533 if (!ParseMaterialXValue (scale_attr.as_string (), &value, err)) {
534534 PUSH_ERROR_AND_RETURN (
535535 " Failed to parse `rotate` attribute of `place2d`.\n " );
@@ -538,7 +538,7 @@ static bool ConvertPlace2d(const pugi::xml_node &node, PrimSpec &ps,
538538 }
539539
540540 if (pugi::xml_attribute rotate_attr = node.attribute (" rotate" )) {
541- float value;
541+ float value{} ;
542542 if (!ParseMaterialXValue (rotate_attr.as_string (), &value, err)) {
543543 PUSH_ERROR_AND_RETURN (
544544 " Failed to parse `rotate` attribute of `place2d`.\n " );
@@ -548,7 +548,7 @@ static bool ConvertPlace2d(const pugi::xml_node &node, PrimSpec &ps,
548548
549549 pugi::xml_attribute offset_attr = node.attribute (" offset" );
550550 if (offset_attr) {
551- value::float2 value;
551+ value::float2 value{} ;
552552 if (!ParseMaterialXValue (offset_attr.as_string (), &value, err)) {
553553 PUSH_ERROR_AND_RETURN (
554554 " Failed to parse `offset` attribute of `place2d`.\n " );
0 commit comments