diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-25 14:49:47 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-25 14:52:35 +0100 |
commit | ceec1a7d38d4c8941dbf537b85bd50f0030ffbec (patch) | |
tree | 2b137c37ae0f331bb3626583a619a3175ef614d4 /Applications/SystemMenu | |
parent | 9c6f7d3e7d2252ad2d51f2c7c7379cab867fa477 (diff) | |
download | serenity-ceec1a7d38d4c8941dbf537b85bd50f0030ffbec.zip |
AK: Make Vector use size_t for its size and capacity
Diffstat (limited to 'Applications/SystemMenu')
-rw-r--r-- | Applications/SystemMenu/PowerDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/SystemMenu/PowerDialog.cpp b/Applications/SystemMenu/PowerDialog.cpp index 988431f3a9..650ee23e89 100644 --- a/Applications/SystemMenu/PowerDialog.cpp +++ b/Applications/SystemMenu/PowerDialog.cpp @@ -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); |