diff options
| author | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-07-01 03:23:05 +0500 |
| commit | 6dc5194895b6bd61d19bf5c95021471784084325 (patch) | |
| tree | 705c35b3a671a09fc52b406dca81e7761729ded6 /core/utils | |
| parent | 44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff) | |
| download | voxelius-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/utils')
| -rw-r--r-- | core/utils/string.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/utils/string.cc b/core/utils/string.cc index 5497cec..dd3d567 100644 --- a/core/utils/string.cc +++ b/core/utils/string.cc @@ -8,9 +8,11 @@ bool utils::is_whitespace(const std::string& string) { if(string.find_first_not_of(WHITESPACE_CHARS) == std::string::npos) { return true; - } else if((string.size() == 1) && string[0] == 0x00) { + } + else if((string.size() == 1) && string[0] == 0x00) { return true; - } else { + } + else { return string.empty(); } } @@ -48,7 +50,8 @@ std::string utils::trim_whitespace(const std::string& string) if(su == std::string::npos) { return std::string(); - } else { + } + else { return string.substr(su, sv - su + 1); } } |
