From c723f8aa222228b232aff61f1287bdac6a474b6c Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 18 Jan 2022 10:04:56 -0700 Subject: [PATCH] Use override keyword --- src/SFML/Audio/SoundFileReaderOpus.hpp | 6 +++--- src/SFML/Audio/SoundFileWriterOpus.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SFML/Audio/SoundFileReaderOpus.hpp b/src/SFML/Audio/SoundFileReaderOpus.hpp index 213dc7a3f..ef9e682c3 100644 --- a/src/SFML/Audio/SoundFileReaderOpus.hpp +++ b/src/SFML/Audio/SoundFileReaderOpus.hpp @@ -77,7 +77,7 @@ public: /// \return True if the file was successfully opened /// //////////////////////////////////////////////////////////// - virtual bool open(InputStream& stream, Info& info); + bool open(InputStream& stream, Info& info) override; //////////////////////////////////////////////////////////// /// \brief Change the current read position to the given sample offset @@ -88,7 +88,7 @@ public: /// \param sampleOffset Index of the sample to jump to, relative to the beginning /// //////////////////////////////////////////////////////////// - virtual void seek(Uint64 sampleOffset); + void seek(Uint64 sampleOffset) override; //////////////////////////////////////////////////////////// /// \brief Read audio samples from the open file @@ -99,7 +99,7 @@ public: /// \return Number of samples actually read (may be less than \a maxCount) /// //////////////////////////////////////////////////////////// - virtual Uint64 read(Int16* samples, Uint64 maxCount); + Uint64 read(Int16* samples, Uint64 maxCount) override; private: diff --git a/src/SFML/Audio/SoundFileWriterOpus.hpp b/src/SFML/Audio/SoundFileWriterOpus.hpp index 3e9496caf..fab7f7ffc 100644 --- a/src/SFML/Audio/SoundFileWriterOpus.hpp +++ b/src/SFML/Audio/SoundFileWriterOpus.hpp @@ -80,7 +80,7 @@ public: /// \return True if the file was successfully opened /// //////////////////////////////////////////////////////////// - virtual bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount); + bool open(const std::string& filename, unsigned int sampleRate, unsigned int channelCount) override; //////////////////////////////////////////////////////////// /// \brief Write audio samples to the open file @@ -89,7 +89,7 @@ public: /// \param count Number of samples to write /// //////////////////////////////////////////////////////////// - virtual void write(const Int16* samples, Uint64 count); + void write(const Int16* samples, Uint64 count) override; private: