Skip to content

Commit

Permalink
Fix yaml templates performance
Browse files Browse the repository at this point in the history
  • Loading branch information
psiberx committed May 8, 2024
1 parent e01396c commit 73935ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/App/Project.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ constexpr auto Author = "psiberx";
constexpr auto NameW = L"TweakXL";
constexpr auto AuthorW = L"psiberx";

constexpr auto Version = semver::from_string_noexcept("1.8.5").value();
constexpr auto Version = semver::from_string_noexcept("1.8.6").value();
}
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 @@ -166,7 +166,7 @@ void ProcessNode(const YAML::Node& aNode, const InstanceData& aInstanceData)
}
case YAML::NodeType::Map:
{
for (auto& nodeIt : aNode)
for (const auto& nodeIt : aNode)
{
ProcessNode(nodeIt.second, aInstanceData);
}
Expand All @@ -177,7 +177,7 @@ void ProcessNode(const YAML::Node& aNode, const InstanceData& aInstanceData)
if (aNode.size() == 0)
break;

YAML::Node expandedNode;
YAML::Node expandedNode{YAML::NodeType::Undefined};

for (std::size_t i = 0; i < aNode.size(); ++i)
{
Expand Down
8 changes: 4 additions & 4 deletions src/App/Version.rc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define VER_PRODUCTVERSION 1,8,5,0
#define VER_FILEVERSION 1,8,5,2404270852
#define VER_PRODUCTVERSION 1,8,6,0
#define VER_FILEVERSION 1,8,6,2405081442

#define VER_PRODUCTNAME_STR "TweakXL\0"
#define VER_PRODUCTVERSION_STR "1.8.5\0"
#define VER_FILEVERSION_STR "1.8.5.2404270852\0"
#define VER_PRODUCTVERSION_STR "1.8.6\0"
#define VER_FILEVERSION_STR "1.8.6.2405081442\0"

1 VERSIONINFO
FILEVERSION VER_FILEVERSION
Expand Down
2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set_xmakever("2.5.9")

set_project("TweakXL")
set_version("1.8.5", {build = "%y%m%d%H%M"})
set_version("1.8.6", {build = "%y%m%d%H%M"})

set_arch("x64")
set_languages("cxx2a")
Expand Down

0 comments on commit 73935ab

Please sign in to comment.