From 6dc5194895b6bd61d19bf5c95021471784084325 Mon Sep 17 00:00:00 2001 From: untodesu Date: Tue, 1 Jul 2025 03:23:05 +0500 Subject: I forgot to set these to true in .clang-format https://files.catbox.moe/909rig.gif --- core/io/config_map.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'core/io/config_map.cc') diff --git a/core/io/config_map.cc b/core/io/config_map.cc index 7bce1a6..2afd2a8 100644 --- a/core/io/config_map.cc +++ b/core/io/config_map.cc @@ -32,7 +32,8 @@ bool io::ConfigMap::load_file(const char* path) if(comment == std::string::npos) { kv_string = utils::trim_whitespace(line); - } else { + } + else { kv_string = utils::trim_whitespace(line.substr(0, comment)); } @@ -109,7 +110,8 @@ const char* io::ConfigMap::get_value(const char* name) const auto kv_pair = m_values.find(name); if(kv_pair != m_values.cend()) { return kv_pair->second->get(); - } else { + } + else { return nullptr; } } @@ -125,7 +127,8 @@ const config::IValue* io::ConfigMap::find(const char* name) const if(kv_pair != m_values.cend()) { return kv_pair->second; - } else { + } + else { return nullptr; } } -- cgit