summaryrefslogtreecommitdiffstats
path: root/core/io/config_map.cc
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/config_map.cc
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/config_map.cc')
-rw-r--r--core/io/config_map.cc9
1 files changed, 6 insertions, 3 deletions
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;
}
}