From 7fbe52f835688967a6079582ed8839cb55d0f9ea Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Mar 2021 13:34:55 +1100 Subject: Make Window argument to Menu::Show const as that avoids warnings and the Window is not altered by showing a menu. --- cocoa/PlatCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm index eb7a93ef1..be9ee23cd 100644 --- a/cocoa/PlatCocoa.mm +++ b/cocoa/PlatCocoa.mm @@ -2032,7 +2032,7 @@ void Menu::Destroy() noexcept { //-------------------------------------------------------------------------------------------------- -void Menu::Show(Point, Window &) { +void Menu::Show(Point, const Window &) { // Cocoa menus are handled a bit differently. We only create the menu. The framework // takes care to show it properly. } -- cgit v1.2.3