mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +08:00
Use inline
to define constant in header
This commit is contained in:
parent
dcfccbec6e
commit
f588589089
@ -152,8 +152,8 @@ private:
|
||||
// Static member data
|
||||
////////////////////////////////////////////////////////////
|
||||
// NOLINTBEGIN(readability-identifier-naming)
|
||||
static ReaderFactoryArray s_readers; //!< List of all registered readers
|
||||
static WriterFactoryArray s_writers; //!< List of all registered writers
|
||||
static inline ReaderFactoryArray s_readers; //!< List of all registered readers
|
||||
static inline WriterFactoryArray s_writers; //!< List of all registered writers
|
||||
// NOLINTEND(readability-identifier-naming)
|
||||
};
|
||||
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
////////////////////////////////////////////////////////////
|
||||
// NOLINTBEGIN(readability-identifier-naming)
|
||||
/// Represents an invalid position in the string
|
||||
static const std::size_t InvalidPos{std::u32string::npos};
|
||||
static inline const std::size_t InvalidPos{std::u32string::npos};
|
||||
// NOLINTEND(readability-identifier-naming)
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -64,10 +64,6 @@ void ensureDefaultReadersWritersRegistered()
|
||||
|
||||
namespace sf
|
||||
{
|
||||
SoundFileFactory::ReaderFactoryArray SoundFileFactory::s_readers;
|
||||
SoundFileFactory::WriterFactoryArray SoundFileFactory::s_writers;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
std::unique_ptr<SoundFileReader> SoundFileFactory::createReaderFromFilename(const std::filesystem::path& filename)
|
||||
{
|
||||
|
@ -37,10 +37,6 @@
|
||||
|
||||
namespace sf
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
const std::size_t String::InvalidPos;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
String::String() = default;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user