17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-02 10:29:13 +01:00

refactor(sonar): use override instead of redundant virtual (cpp:S3471)

This commit is contained in:
jerrrrycho
2026-10-10 14:55:56 +02:00
parent c26041f2e7
commit 3d46090e49
14 changed files with 213 additions and 213 deletions

View File

@@ -21,36 +21,36 @@ struct IMaterial
{
static struct NullMaterial : public IMaterial
{
virtual void finalize(bool Loadnow) override {}
virtual bool update() override
void finalize(bool Loadnow) override {}
bool update() override
{
return false;
}
virtual float get_or_guess_opacity() const override
float get_or_guess_opacity() const override
{
return 1.f;
}
virtual bool is_translucent() const override
bool is_translucent() const override
{
return false;
}
virtual glm::vec2 GetSize() const override
glm::vec2 GetSize() const override
{
return {-1.f, -1.f};
}
virtual std::string GetName() const override
std::string GetName() const override
{
return "";
}
virtual std::optional<float> GetSelfillum() const override
std::optional<float> GetSelfillum() const override
{
return std::nullopt;
}
virtual int GetShadowRank() const override
int GetShadowRank() const override
{
return 0;
}
virtual texture_handle GetTexture(int slot) const override
texture_handle GetTexture(int slot) const override
{
return 0;
}