summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-19 20:24:03 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-19 20:24:03 +0200
commitc5730ed6a3128eab2ccf7275195c67877ec87708 (patch)
tree4d49e122893c40d8e6a19160b05533a74ec77d7a
parentc45e16f6052abdb04e1145db1208476264e4c57d (diff)
downloadserenity-c5730ed6a3128eab2ccf7275195c67877ec87708.zip
WindowServer: Fix AppletManager build
-rw-r--r--Servers/WindowServer/AppletManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/AppletManager.cpp b/Servers/WindowServer/AppletManager.cpp
index e07fd46220..855ff3bcd3 100644
--- a/Servers/WindowServer/AppletManager.cpp
+++ b/Servers/WindowServer/AppletManager.cpp
@@ -79,7 +79,7 @@ void AppletManager::add_applet(Window& applet)
quick_sort(m_applets, [](auto& a, auto& b) {
auto index_a = order_vector.find_first_index(a->title());
auto index_b = order_vector.find_first_index(b->title());
- return index_a.value_or("") > index_b.value_or("");
+ return index_a.value_or(0) > index_b.value_or(0);
});
calculate_applet_rects(MenuManager::the().window());