IMAGE: Added missing override keywords

This commit is contained in:
Eugene Sandulenko
2025-05-04 07:53:32 +02:00
parent ae73b5892e
commit 160ec4bfe5
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -82,8 +82,8 @@ public:
virtual ~IFFDecoder();
// ImageDecoder API
void destroy();
bool loadStream(Common::SeekableReadStream &stream);
void destroy() override;
bool loadStream(Common::SeekableReadStream &stream) override;
const Header *getHeader() const { return &_header; }
const Graphics::Surface *getSurface() const override { return _surface; }
const Graphics::Palette &getPalette() const override { return _palette; }
+2 -2
View File
@@ -54,8 +54,8 @@ public:
virtual ~PCXDecoder();
// ImageDecoder API
void destroy();
virtual bool loadStream(Common::SeekableReadStream &stream);
void destroy() override;
virtual bool loadStream(Common::SeekableReadStream &stream) override;
const Graphics::Surface *getSurface() const override { return _surface; }
const Graphics::Palette &getPalette() const override { return _palette; }
+2 -2
View File
@@ -67,10 +67,10 @@ class TGADecoder : public ImageDecoder {
public:
TGADecoder();
virtual ~TGADecoder();
virtual void destroy();
virtual void destroy() override;
const Graphics::Surface *getSurface() const override { return &_surface; }
const Graphics::Palette &getPalette() const override { return _colorMap; }
virtual bool loadStream(Common::SeekableReadStream &stream);
virtual bool loadStream(Common::SeekableReadStream &stream) override;
private:
// Format-spec from:
//http://www.ludorg.net/amnesia/TGA_File_Format_Spec.html