mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:44:58 +00:00
AK: Remove unnecessary casts to size_t, after Vector changes
Now that Vector uses size_t, we can remove a whole bunch of redundant casts to size_t.
This commit is contained in:
parent
fee20bd8de
commit
22d0a6d92f
15 changed files with 60 additions and 57 deletions
|
@ -130,7 +130,7 @@ String JsonParser::consume_quoted_string()
|
|||
return String::empty();
|
||||
|
||||
auto& last_string_starting_with_character = m_last_string_starting_with_character[(u8)buffer.first()];
|
||||
if (last_string_starting_with_character.length() == (size_t)buffer.size()) {
|
||||
if (last_string_starting_with_character.length() == buffer.size()) {
|
||||
if (!memcmp(last_string_starting_with_character.characters(), buffer.data(), buffer.size()))
|
||||
return last_string_starting_with_character;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue