1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 21:55:07 +00:00

AK: Make Vector use size_t for its size and capacity

This commit is contained in:
Andreas Kling 2020-02-25 14:49:47 +01:00
parent 9c6f7d3e7d
commit ceec1a7d38
94 changed files with 323 additions and 317 deletions

View file

@ -62,7 +62,7 @@ Vector<char const*> PowerDialog::show()
PowerDialog::PowerDialog()
: GUI::Dialog(nullptr)
{
Gfx::Rect rect({ 0, 0, 180, 180 + ((options.size() - 3) * 16) });
Gfx::Rect rect({ 0, 0, 180, 180 + ((static_cast<int>(options.size()) - 3) * 16) });
rect.center_within(GUI::Desktop::the().rect());
set_rect(rect);
set_resizable(false);
@ -83,7 +83,7 @@ PowerDialog::PowerDialog()
header->set_font(Gfx::Font::default_bold_font());
int selected = -1;
for (int i = 0; i < options.size(); i++) {
for (size_t i = 0; i < options.size(); i++) {
auto action = options[i];
auto radio = main->add<GUI::RadioButton>();
radio->set_enabled(action.enabled);