diff --git a/src/fontcache/spritefontcache.h b/src/fontcache/spritefontcache.h index 4e710c1a93..628a6d08e1 100644 --- a/src/fontcache/spritefontcache.h +++ b/src/fontcache/spritefontcache.h @@ -23,16 +23,16 @@ private: public: SpriteFontCache(FontSize fs); ~SpriteFontCache(); - virtual void SetUnicodeGlyph(char32_t key, SpriteID sprite); - virtual void InitializeUnicodeGlyphMap(); - virtual void ClearFontCache(); - virtual const Sprite *GetGlyph(GlyphID key); - virtual uint GetGlyphWidth(GlyphID key); - virtual bool GetDrawGlyphShadow(); - virtual GlyphID MapCharToGlyph(char32_t key) { assert(IsPrintable(key)); return SPRITE_GLYPH | key; } + void SetUnicodeGlyph(char32_t key, SpriteID sprite) override; + void InitializeUnicodeGlyphMap() override; + void ClearFontCache() override; + const Sprite *GetGlyph(GlyphID key) override; + uint GetGlyphWidth(GlyphID key) override; + bool GetDrawGlyphShadow() override; + GlyphID MapCharToGlyph(char32_t key) override { assert(IsPrintable(key)); return SPRITE_GLYPH | key; } const void *GetFontTable(uint32_t, size_t &length) override { length = 0; return nullptr; } - virtual std::string GetFontName() { return "sprite"; } - virtual bool IsBuiltInFont() { return true; } + std::string GetFontName() override { return "sprite"; } + bool IsBuiltInFont() override { return true; } }; #endif /* SPRITEFONTCACHE_H */