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/cmdline.cc | 3 ++- core/io/config_map.cc | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'core/io') diff --git a/core/io/cmdline.cc b/core/io/cmdline.cc index c43727d..963f67c 100644 --- a/core/io/cmdline.cc +++ b/core/io/cmdline.cc @@ -61,7 +61,8 @@ void io::cmdline::insert(const char* option, const char* argument) { if(argument == nullptr) { options.insert_or_assign(option, std::string()); - } else { + } + else { options.insert_or_assign(option, argument); } } 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