mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 15:57:03 -05:00
chore: apply light lints (#2570)
This commit is contained in:
@@ -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("\"")) {
|
||||
|
||||
Reference in New Issue
Block a user