GS: Add missing override specifier to a few files

This commit is contained in:
Connor McLaughlin 2021-12-23 23:19:53 +10:00 committed by refractionpcsx2
parent 013c292ffb
commit ea41cce5ef
4 changed files with 14 additions and 14 deletions

View File

@ -17,7 +17,7 @@
#include "GS/Renderers/Common/GSRenderer.h"
class GSRendererNull : public GSRenderer
class GSRendererNull final : public GSRenderer
{
class GSVertexTraceNull : public GSVertexTrace
{
@ -29,11 +29,11 @@ class GSRendererNull : public GSRenderer
};
protected:
void Draw()
void Draw() override
{
}
GSTexture* GetOutput(int i, int& y_offset)
GSTexture* GetOutput(int i, int& y_offset) override
{
return NULL;
}

View File

@ -17,7 +17,7 @@
#include "GS/Renderers/Common/GSTexture.h"
class GSTextureNull : public GSTexture
class GSTextureNull final : public GSTexture
{
struct
{
@ -33,8 +33,8 @@ public:
Type GetType() const { return m_desc.type; }
Format GetFormat() const { return m_desc.format; }
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) { return true; }
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) { return false; }
void Unmap() {}
bool Save(const std::string& fn) { return false; }
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) override { return true; }
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) override { return false; }
void Unmap() override {}
bool Save(const std::string& fn) override { return false; }
};

View File

@ -83,5 +83,5 @@ public:
void CommitPages(const GSVector2i& region, bool commit) final;
u32 GetMemUsage();
u32 GetMemUsage() final;
};

View File

@ -27,10 +27,10 @@ class GSTextureSW final : public GSTexture
public:
GSTextureSW(Type type, int width, int height);
virtual ~GSTextureSW();
~GSTextureSW() override;
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0);
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0);
void Unmap();
bool Save(const std::string& fn);
bool Update(const GSVector4i& r, const void* data, int pitch, int layer = 0) override;
bool Map(GSMap& m, const GSVector4i* r = NULL, int layer = 0) override;
void Unmap() override;
bool Save(const std::string& fn) override;
};