aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-03-26 14:42:42 +1100
committerNeil <nyamatongwe@gmail.com>2019-03-26 14:42:42 +1100
commite7f160f17678edb6aec046f4e4da5757bfadb932 (patch)
treee8a46537cf13fd6872ce4d51c4902cda515659e8
parent81082e48424f6a18d306dfb073ded8ef6688434e (diff)
downloadscintilla-mirror-e7f160f17678edb6aec046f4e4da5757bfadb932.tar.gz
Backport: Make PWidget noexcept and take const argument so it can be used in more contexts.
Backport of changeset 7334:b0c7be8925c3.
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 129da2b07..1b5d16a13 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -148,7 +148,7 @@ static const gint nClipboardPasteTargets = ELEMENTS(clipboardPasteTargets);
static const GdkDragAction actionCopyOrMove = static_cast<GdkDragAction>(GDK_ACTION_COPY | GDK_ACTION_MOVE);
-static GtkWidget *PWidget(Window &w) {
+static GtkWidget *PWidget(const Window &w) noexcept {
return static_cast<GtkWidget *>(w.GetID());
}