diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-03-27 08:34:16 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-03-27 08:34:16 +1100 |
| commit | ff4e7e74e24d88194e01a78f9c5b2649bbcc1a59 (patch) | |
| tree | d8ec063c8a5a7afc16022005bd4fe109b22a763e /gtk/ScintillaGTK.h | |
| parent | a29736e309ee7d0b8ca588674024c2deb6923090 (diff) | |
| download | scintilla-mirror-ff4e7e74e24d88194e01a78f9c5b2649bbcc1a59.tar.gz | |
Replace NULL/0 with nullptr. Mark noexcept where simple.
Move some static functions into anonymous namespace.
Diffstat (limited to 'gtk/ScintillaGTK.h')
| -rw-r--r-- | gtk/ScintillaGTK.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/ScintillaGTK.h b/gtk/ScintillaGTK.h index 7cff34ff3..ab485ee96 100644 --- a/gtk/ScintillaGTK.h +++ b/gtk/ScintillaGTK.h @@ -99,7 +99,7 @@ private: TickReason reason; ScintillaGTK *scintilla; guint timer; - TimeThunk() : reason(tickCaret), scintilla(NULL), timer(0) {} + TimeThunk() : reason(tickCaret), scintilla(nullptr), timer(0) {} }; TimeThunk timers[tickDwell+1]; bool FineTickerRunning(TickReason reason) override; @@ -256,7 +256,7 @@ class GObjectWatcher { PLATFORM_ASSERT(obj == weakRef); Destroyed(); - weakRef = 0; + weakRef = nullptr; } static void WeakNotify(gpointer data, GObject *obj) { @@ -278,7 +278,7 @@ public: virtual void Destroyed() {} bool IsDestroyed() const { - return weakRef != 0; + return weakRef != nullptr; } }; |
