aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 13:34:55 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 13:34:55 +1100
commit7fbe52f835688967a6079582ed8839cb55d0f9ea (patch)
tree0dc8c1b28dd541c84c7dd10114618be930a0afdd /win32/PlatWin.cxx
parent907c32f8149ec13c39c90424cfed018b2b1eac87 (diff)
downloadscintilla-mirror-7fbe52f835688967a6079582ed8839cb55d0f9ea.tar.gz
Make Window argument to Menu::Show const as that avoids warnings and the Window
is not altered by showing a menu.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
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<HMENU>(mid),
TPM_RIGHTBUTTON, static_cast<int>(pt.x - 4), static_cast<int>(pt.y), 0,
HwndFromWindow(w), nullptr);