17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 20:27:28 +01:00

refactor(sonar): document intentionally empty functions (cpp:S1186)

This commit is contained in:
jerrrrycho
2026-10-10 15:56:34 +02:00
parent 9aa7e658ac
commit 4b55445a53
10 changed files with 35 additions and 34 deletions

View File

@@ -21,7 +21,7 @@ struct IMaterial
{
static struct NullMaterial : public IMaterial
{
void finalize(bool Loadnow) override {}
void finalize(bool Loadnow) override { /* null implementation, nothing to do */ }
bool update() override
{
return false;

View File

@@ -45,8 +45,8 @@ struct ITexture
{
return 0;
}
void release() override {}
void make_stub() override {}
void release() override { /* null implementation, nothing to do */ }
void make_stub() override { /* null implementation, nothing to do */ }
std::string_view get_traits() const override
{
return "";
@@ -67,9 +67,9 @@ struct ITexture
{
return false;
}
void set_components_hint(int hint) override {}
void make_from_memory(size_t width, size_t height, const uint8_t *data) override {}
void update_from_memory(size_t width, size_t height, const uint8_t *data) override {}
void set_components_hint(int hint) override { /* null implementation, nothing to do */ }
void make_from_memory(size_t width, size_t height, const uint8_t *data) override { /* null implementation, nothing to do */ }
void update_from_memory(size_t width, size_t height, const uint8_t *data) override { /* null implementation, nothing to do */ }
} null_texture{};
return &null_texture;
}