From 17983508b37b3a00ca930c1bc2cf043475b51471 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 23 Jun 2016 21:17:16 +0300 Subject: SCI32: Fix usage of the C++11 override keyword with MSVC MSVC does not allow the usage of the "override" keyword on function definition, only on declaration --- engines/sci/sound/decoders/sol.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/engines/sci/sound/decoders/sol.cpp b/engines/sci/sound/decoders/sol.cpp index a899cc4c77..e445403120 100644 --- a/engines/sci/sound/decoders/sol.cpp +++ b/engines/sci/sound/decoders/sol.cpp @@ -118,7 +118,7 @@ SOLStream::SOLStream(Common::SeekableReadStream *stream, const D } template -bool SOLStream::seek(const Audio::Timestamp &where) override { +bool SOLStream::seek(const Audio::Timestamp &where) { if (where != 0) { // In order to seek in compressed SOL files, all // previous bytes must be known since it uses @@ -138,12 +138,12 @@ bool SOLStream::seek(const Audio::Timestamp &where) override { } template -Audio::Timestamp SOLStream::getLength() const override { +Audio::Timestamp SOLStream::getLength() const { return _length; } template -int SOLStream::readBuffer(int16 *buffer, const int numSamples) override { +int SOLStream::readBuffer(int16 *buffer, const int numSamples) { // Reading an odd number of 8-bit samples will result in a loss of samples // since one byte represents two samples and we do not store the second // nibble in this case; it should never happen in reality @@ -167,22 +167,22 @@ int SOLStream::readBuffer(int16 *buffer, const int numSamples) o } template -bool SOLStream::isStereo() const override { +bool SOLStream::isStereo() const { return STEREO; } template -int SOLStream::getRate() const override { +int SOLStream::getRate() const { return _sampleRate; } template -bool SOLStream::endOfData() const override { +bool SOLStream::endOfData() const { return _stream->eos() || _stream->pos() >= _dataOffset + _rawDataSize; } template -bool SOLStream::rewind() override { +bool SOLStream::rewind() { return seek(0); } -- cgit v1.2.3