From e7f160f17678edb6aec046f4e4da5757bfadb932 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 26 Mar 2019 14:42:42 +1100 Subject: Backport: Make PWidget noexcept and take const argument so it can be used in more contexts. Backport of changeset 7334:b0c7be8925c3. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') 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(GDK_ACTION_COPY | GDK_ACTION_MOVE); -static GtkWidget *PWidget(Window &w) { +static GtkWidget *PWidget(const Window &w) noexcept { return static_cast(w.GetID()); } -- cgit v1.2.3