chore: apply light lints (#2570)

This commit is contained in:
iTrooz
2025-12-19 23:49:37 +01:00
committed by GitHub
parent 92cfdf1145
commit 261610dcf1
72 changed files with 477 additions and 447 deletions

View File

@@ -7,7 +7,7 @@ namespace hex {
namespace {
void skipWhitespace(std::string_view &string) {
while (string.length() > 0) {
while (!string.empty()) {
if (!std::isspace(string.front()))
break;
string = string.substr(1);
@@ -89,7 +89,7 @@ namespace hex {
return { };
bool inString = false;
while (string.length() > 0) {
while (!string.empty()) {
BinaryPattern::Pattern pattern = { 0, 0 };
if (string.starts_with("\"")) {