aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
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 /qt/ScintillaEditBase/PlatQt.cpp
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 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp2
1 files changed, 1 insertions, 1 deletions
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<QMenu *>(mid);
menu->exec(QPoint(pt.x, pt.y));