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. --- qt/ScintillaEditBase/PlatQt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt/ScintillaEditBase/PlatQt.cpp') diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 4bdd04778..9ea1d88f5 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -1125,7 +1125,7 @@ void Menu::Destroy() noexcept } mid = nullptr; } -void Menu::Show(Point pt, Window & /*w*/) +void Menu::Show(Point pt, const Window & /*w*/) { QMenu *menu = static_cast(mid); menu->exec(QPoint(pt.x, pt.y)); -- cgit v1.2.3