aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2023-01-20 17:24:03 +0100
committerGitHub <noreply@github.com>2023-01-20 16:24:03 +0000
commit3a6162627155ec48244c5870729c67fd201e6d6f (patch)
tree88743d18c744bd0c360d358df5cd9dfaca3ddfb3 /NorthstarDLL
parent063260ca0b1f633cf120d79796fe7aa3329c1e26 (diff)
downloadNorthstarLauncher-3a6162627155ec48244c5870729c67fd201e6d6f.tar.gz
NorthstarLauncher-3a6162627155ec48244c5870729c67fd201e6d6f.zip
Pedantic fix for #391 (use if-else instead of if) (#392)
Pedantic fix for previous commit (3cfd6f9) (use if-else instead of if)
Diffstat (limited to 'NorthstarDLL')
-rw-r--r--NorthstarDLL/util/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDLL/util/utils.cpp b/NorthstarDLL/util/utils.cpp
index 10c5b26d..a3b31e17 100644
--- a/NorthstarDLL/util/utils.cpp
+++ b/NorthstarDLL/util/utils.cpp
@@ -29,13 +29,13 @@ void NS::Utils::RemoveAsciiControlSequences(char* str, bool allow_color_codes)
int bytesToSkip = 0;
if ((c & 0xE0) == 0xC0)
bytesToSkip = 1; // skip 2-byte UTF-8 sequence
- if ((c & 0xF0) == 0xE0)
+ else if ((c & 0xF0) == 0xE0)
bytesToSkip = 2; // skip 3-byte UTF-8 sequence
- if ((c & 0xF8) == 0xF0)
+ else if ((c & 0xF8) == 0xF0)
bytesToSkip = 3; // skip 4-byte UTF-8 sequence
- if ((c & 0xFC) == 0xF8)
+ else if ((c & 0xFC) == 0xF8)
bytesToSkip = 4; // skip 5-byte UTF-8 sequence
- if ((c & 0xFE) == 0xFC)
+ else if ((c & 0xFE) == 0xFC)
bytesToSkip = 5; // skip 6-byte UTF-8 sequence
bool invalid = false;