Define SoundStream::NoLoop as constexpr instead of enum

This commit is contained in:
kimci86 2024-04-28 11:11:46 +02:00 committed by Chris Thrasher
parent bdd348c142
commit 71395e746e

View File

@ -194,10 +194,8 @@ public:
bool getLoop() const; bool getLoop() const;
protected: protected:
enum // NOLINTNEXTLINE(readability-identifier-naming)
{ static constexpr std::int64_t NoLoop = -1; //!< "Invalid" onLoop return value, telling us to continue uninterrupted
NoLoop = -1 //!< "Invalid" endSeeks value, telling us to continue uninterrupted
};
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor