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 | e7f160f17678edb6aec046f4e4da5757bfadb932 (patch) | |
| tree | e8a46537cf13fd6872ce4d51c4902cda515659e8 | |
| parent | 81082e48424f6a18d306dfb073ded8ef6688434e (diff) | |
| download | scintilla-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.cxx | 2 |
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()); } |
