From 605a0ebaa030f2866bf6c4966b3581a8c8486425 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 31 Mar 2026 10:02:15 +1100 Subject: Replace use of `enum` where this produced warnings from Xcode 26.4 with `static constexpr int`. --- src/Editor.h | 4 ++-- 1 file 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; -- cgit v1.2.3