From a0841ccdf681a2b7fbcc45779191c844a1078507 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 26 Mar 2019 14:42:42 +1100 Subject: Make PWidget noexcept and take const argument so it can be used in more contexts. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index c6ad82a96..a37f66967 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -149,7 +149,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