Make some style corrections

Co-Authored-By: Rangi <remy.oukaour+rangi42@gmail.com>
This commit is contained in:
ISSOtm
2022-03-14 21:31:46 +01:00
committed by Eldred Habert
parent e49fb457ea
commit 6ed220b4c1
5 changed files with 39 additions and 43 deletions

View File

@@ -22,7 +22,7 @@ bool ProtoPalette::add(uint16_t color) {
while (_colorIndices[i] < color) {
++i;
if (i == _colorIndices.size())
return false; // EOF
return false;
}
// If we found ourselves, great!
if (_colorIndices[i] == color)
@@ -51,7 +51,7 @@ ProtoPalette::ComparisonResult ProtoPalette::compare(ProtoPalette const &other)
} else if (*ours < *theirs) {
++ours;
theyBigger = false;
} else {
} else { // *ours > *theirs
++theirs;
weBigger = false;
}