diff options
author | Neil <nyamatongwe@gmail.com> | 2019-03-26 14:42:42 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-03-26 14:42:42 +1100 |
commit | a0841ccdf681a2b7fbcc45779191c844a1078507 (patch) | |
tree | 34c54b2ebe7982808139dfd80fa7e35aa24677ac | |
parent | b76c680810428da074503837989e40687c2ddedf (diff) | |
download | scintilla-mirror-a0841ccdf681a2b7fbcc45779191c844a1078507.tar.gz |
Make PWidget noexcept and take const argument so it can be used in more contexts.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
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()); } |