mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
More moving towards using signed types.
I'm still feeling this out, but I am starting to like the general idea.
This commit is contained in:
parent
beda478821
commit
9624b54703
Notes:
sideshowbarker
2024-07-19 15:37:54 +09:00
Author: https://github.com/awesomekling
Commit: 9624b54703
48 changed files with 234 additions and 250 deletions
|
@ -138,7 +138,7 @@ void DirectoryView::paint_event(GPaintEvent&)
|
|||
int painted_item_index = 0;
|
||||
|
||||
auto process_entries = [&] (const Vector<Entry>& entries) {
|
||||
for (size_t i = 0; i < entries.size(); ++i, ++painted_item_index) {
|
||||
for (int i = 0; i < entries.size(); ++i, ++painted_item_index) {
|
||||
auto& entry = entries[i];
|
||||
int y = painted_item_index * item_height();
|
||||
Rect icon_rect(horizontal_padding, y, icon_size, item_height());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue