1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 00:25:06 +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

@ -72,10 +72,11 @@ void AppletManager::add_applet(Window& applet)
m_applets.append(applet.make_weak_ptr());
quick_sort(m_applets.begin(), m_applets.end(), [](auto& a, auto& b) {
int index_a = order_vector.find_first_index(a->title());
int index_b = order_vector.find_first_index(b->title());
return index_a > index_b;
auto index_a = order_vector.find_first_index(a->title());
auto index_b = order_vector.find_first_index(b->title());
ASSERT(index_a.has_value());
ASSERT(index_b.has_value());
return index_a.value() > index_b.value();
});
calculate_applet_rects(MenuManager::the().window());