From 2fd85246c28b34a9224100ed03cc8b803a566acf Mon Sep 17 00:00:00 2001 From: Anonymous275 <36374260+Anonymous-275@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:43:51 +0300 Subject: [PATCH] fix clion error --- src/gui/Gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/Gui.cpp b/src/gui/Gui.cpp index f22b15d..e1ece33 100644 --- a/src/gui/Gui.cpp +++ b/src/gui/Gui.cpp @@ -3,6 +3,7 @@ /// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// // clang-format off +#include #include #ifndef WX_PRECOMP #include @@ -15,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -199,7 +199,7 @@ void MySettingsFrame::UpdateCacheDirectory(const std::string& path) { template void UpdateConfig(const std::string& key, ValueType&& value) { if (fs::exists(UIData::ConfigPath)) { - toml::parse_result config = toml::parse_file(UIData::ConfigPath); + toml::table config = toml::parse_file(UIData::ConfigPath).table(); config.insert_or_assign(key, value); std::ofstream tml(UIData::ConfigPath);