From 71395e746e597eb4605e3b6ec176560a577b1df4 Mon Sep 17 00:00:00 2001 From: kimci86 Date: Sun, 28 Apr 2024 11:11:46 +0200 Subject: [PATCH] Define SoundStream::NoLoop as constexpr instead of enum --- include/SFML/Audio/SoundStream.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/SFML/Audio/SoundStream.hpp b/include/SFML/Audio/SoundStream.hpp index 270f9672a..b9ac10b1b 100644 --- a/include/SFML/Audio/SoundStream.hpp +++ b/include/SFML/Audio/SoundStream.hpp @@ -194,10 +194,8 @@ public: bool getLoop() const; protected: - enum - { - NoLoop = -1 //!< "Invalid" endSeeks value, telling us to continue uninterrupted - }; + // NOLINTNEXTLINE(readability-identifier-naming) + static constexpr std::int64_t NoLoop = -1; //!< "Invalid" onLoop return value, telling us to continue uninterrupted //////////////////////////////////////////////////////////// /// \brief Default constructor