diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-03-19 10:40:17 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-03-19 10:40:17 +1100 |
| commit | 0830fc211ada91acafd8008ea1d25fa60cf041cb (patch) | |
| tree | 6ce547c2e9fde1defc07f4070199d4a84fc09f17 /gtk/ScintillaGTK.h | |
| parent | ab6f5ef5cea7a32880f806ff84a1d2d426e1360f (diff) | |
| download | scintilla-mirror-0830fc211ada91acafd8008ea1d25fa60cf041cb.tar.gz | |
Use dynamic_cast and assertion to make bugs more obvious.
Use noexcept, namespace, const, constexpr, and static inline where reasonable.
Avoid warnings in initializations.
Diffstat (limited to 'gtk/ScintillaGTK.h')
| -rwxr-xr-x | gtk/ScintillaGTK.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index 516115acc..06d0d080d 100755 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -36,10 +36,10 @@ class ScintillaGTK : public ScintillaBase { GtkWidgetClass *parentClass; - static GdkAtom atomUTF8; - static GdkAtom atomString; - static GdkAtom atomUriList; - static GdkAtom atomDROPFILES_DND; + static inline GdkAtom atomUTF8 {}; + static inline GdkAtom atomString {}; + static inline GdkAtom atomUriList {}; + static inline GdkAtom atomDROPFILES_DND {}; GdkAtom atomSought; #if PLAT_GTK_WIN32 @@ -78,7 +78,7 @@ public: ScintillaGTK &operator=(const ScintillaGTK &) = delete; ScintillaGTK &operator=(ScintillaGTK &&) = delete; virtual ~ScintillaGTK(); - static ScintillaGTK *FromWidget(GtkWidget *widget); + static ScintillaGTK *FromWidget(GtkWidget *widget) noexcept; static void ClassInit(OBJECT_CLASS *object_class, GtkWidgetClass *widget_class, GtkContainerClass *container_class); private: void Init(); |
