Skip to content

Commit

Permalink
Fix empty values in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed Jan 21, 2024
1 parent 43cda6a commit 1cb2740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/Tweaks/Declarative/Yaml/YamlReader.Template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit 1cb2740

Please sign in to comment.