diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2026-03-31 10:02:15 +1100 |
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2026-03-31 10:02:15 +1100 |
| commit | 605a0ebaa030f2866bf6c4966b3581a8c8486425 (patch) | |
| tree | b34d8a0bf19246c649c4f5f99665c7edd80e1f43 | |
| parent | f07caccbf33acd188cbe4961ece30251102351cc (diff) | |
| download | scintilla-mirror-605a0ebaa030f2866bf6c4966b3581a8c8486425.tar.gz | |
Replace use of `enum` where this produced warnings from Xcode 26.4 with `static constexpr int`.
| -rw-r--r-- | src/Editor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index 95b83f1f7..0243d5b63 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -16,7 +16,7 @@ class Timer { public: bool ticking; int ticksToWait; - enum {tickSize = 100}; + static constexpr int tickSize = 100; TickerID tickerID; Timer() noexcept; @@ -226,7 +226,7 @@ protected: // ScintillaBase subclass needs access to much of Editor Timer timer; Timer autoScrollTimer; - enum { autoScrollDelay = 200 }; + static constexpr int autoScrollDelay = 200; Idler idler; |
