Codechange: make all Providers fully const (Font/Screenshot/Sound)

This commit is contained in:
Rubidium
2025-09-29 21:16:42 +02:00
committed by rubidium42
parent dcc3a67752
commit aa7eb089c6
15 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -157,14 +157,14 @@ class SpriteFontCacheFactory : public FontCacheFactory {
public:
SpriteFontCacheFactory() : FontCacheFactory("sprite", "Sprite font provider") {}
std::unique_ptr<FontCache> LoadFont(FontSize fs, FontType fonttype) override
std::unique_ptr<FontCache> LoadFont(FontSize fs, FontType fonttype) const override
{
if (fonttype != FontType::Sprite) return nullptr;
return std::make_unique<SpriteFontCache>(fs);
}
bool FindFallbackFont(struct FontCacheSettings *, const std::string &, class MissingGlyphSearcher *) override
bool FindFallbackFont(struct FontCacheSettings *, const std::string &, class MissingGlyphSearcher *) const override
{
return false;
}