summaryrefslogtreecommitdiffstats
path: root/core/io
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /core/io
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'core/io')
-rw-r--r--core/io/cmdline.cc3
-rw-r--r--core/io/config_map.cc9
2 files changed, 8 insertions, 4 deletions
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;
}
}