summaryrefslogtreecommitdiff
path: root/Services/WindowServer/MenuManager.cpp
diff options
context:
space:
mode:
authorShannon Booth <shannon.ml.booth@gmail.com>2020-05-18 22:09:05 +1200
committerAndreas Kling <kling@serenityos.org>2020-05-18 14:34:57 +0200
commit104828318680922ca2cc9319bf2bbb52fa7716f5 (patch)
treed47db5289fbff2051f218738e1d06d16edbf37f5 /Services/WindowServer/MenuManager.cpp
parent41471eb3ae54168458ec460657dbb520066a4e2e (diff)
downloadserenity-104828318680922ca2cc9319bf2bbb52fa7716f5.zip
WindowServer: Remove uneeded const_casts for getting a submenu
Diffstat (limited to 'Services/WindowServer/MenuManager.cpp')
-rw-r--r--Services/WindowServer/MenuManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/WindowServer/MenuManager.cpp b/Services/WindowServer/MenuManager.cpp
index 31211edb69..99f7651eb8 100644
--- a/Services/WindowServer/MenuManager.cpp
+++ b/Services/WindowServer/MenuManager.cpp
@@ -351,7 +351,7 @@ static void collect_menu_subtree(Menu& menu, Vector<Menu*>& menus)
auto& item = menu.item(i);
if (!item.is_submenu())
continue;
- collect_menu_subtree(*const_cast<MenuItem&>(item).submenu(), menus);
+ collect_menu_subtree(*item.submenu(), menus);
}
}