From 1cb27408520a9818bb59ef8a59e3cb8b18dea397 Mon Sep 17 00:00:00 2001 From: pv
Date: Sun, 21 Jan 2024 04:40:08 +0300 Subject: [PATCH] Fix empty values in templates --- src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp b/src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp index a1481f4..bdf42ca 100644 --- a/src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp +++ b/src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp @@ -154,7 +154,7 @@ YAML::Node FormatNode(const YAML::Node& aNode, const InstanceData& aData) } case YAML::NodeType::Map: { - YAML::Node node; + YAML::Node node{YAML::NodeType::Map}; node.SetTag(aNode.Tag()); for (auto& nodeIt : aNode) { @@ -164,7 +164,7 @@ YAML::Node FormatNode(const YAML::Node& aNode, const InstanceData& aData) } case YAML::NodeType::Sequence: { - YAML::Node node; + YAML::Node node{YAML::NodeType::Sequence}; node.SetTag(aNode.Tag()); for (std::size_t i = 0; i < aNode.size(); ++i) {