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. --- win32/PlatWin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index b73e7145e..63c5a30ab 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -3404,7 +3404,7 @@ void Menu::Destroy() noexcept { mid = 0; } -void Menu::Show(Point pt, Window &w) { +void Menu::Show(Point pt, const Window &w) { ::TrackPopupMenu(static_cast(mid), TPM_RIGHTBUTTON, static_cast(pt.x - 4), static_cast(pt.y), 0, HwndFromWindow(w), nullptr); -- cgit v1.2.3