mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-21 02:28:57 +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:
@@ -86,7 +86,7 @@ void TextDocument::set_text(const StringView& text)
|
||||
size_t TextDocumentLine::first_non_whitespace_column() const
|
||||
{
|
||||
for (size_t i = 0; i < length(); ++i) {
|
||||
if (!isspace(m_text[(int)i]))
|
||||
if (!isspace(m_text[i]))
|
||||
return i;
|
||||
}
|
||||
return length();
|
||||
|
||||
Reference in New Issue
Block a user