mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-21 15:14:13 +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:
@@ -559,7 +559,8 @@ void TextEditor::move_selected_lines_down()
|
||||
get_selection_line_boundaries(first_line, last_line);
|
||||
|
||||
auto& lines = document().lines();
|
||||
if (last_line >= (size_t)(lines.size() - 1))
|
||||
ASSERT(lines.size() != 0);
|
||||
if (last_line >= lines.size() - 1)
|
||||
return;
|
||||
|
||||
lines.insert((int)first_line, lines.take((int)last_line + 1));
|
||||
|
||||
Reference in New Issue
Block a user