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:
parent
9c6f7d3e7d
commit
ceec1a7d38
94 changed files with 323 additions and 317 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue