1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-16 12:05:26 +01:00

Some random code cleanups

This commit is contained in:
sfan5
2025-11-14 16:06:07 +01:00
parent 08ba866992
commit aff1abd05d
21 changed files with 103 additions and 91 deletions

View File

@@ -242,7 +242,7 @@ namespace gui
};
//! Class representing a TrueType font.
class CGUITTFont : public IGUIFont
class CGUITTFont final : public IGUIFont
{
public:
//! Creates a new TrueType font and returns a pointer to it. The pointer must be drop()'ed when finished.

View File

@@ -16,10 +16,7 @@
namespace gui
{
const EGUI_ELEMENT_TYPE EGUIET_ENRICHED_STATIC_TEXT = (EGUI_ELEMENT_TYPE)(0x1000);
class StaticText : public IGUIStaticText
class StaticText final : public IGUIStaticText
{
public:
@@ -155,10 +152,6 @@ namespace gui
return (t == EGUIET_ENRICHED_STATIC_TEXT) || (t == EGUIET_STATIC_TEXT);
};
virtual bool hasType(EGUI_ELEMENT_TYPE t) {
return (t == EGUIET_ENRICHED_STATIC_TEXT) || (t == EGUIET_STATIC_TEXT);
};
void setText(const EnrichedString &text);
private: