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
commita0841ccdf681a2b7fbcc45779191c844a1078507 (patch)
tree34c54b2ebe7982808139dfd80fa7e35aa24677ac
parentb76c680810428da074503837989e40687c2ddedf (diff)
downloadscintilla-mirror-a0841ccdf681a2b7fbcc45779191c844a1078507.tar.gz
Make PWidget noexcept and take const argument so it can be used in more contexts.
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
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<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());
}