diff --git a/Common/Gfx/TextFormat.h b/Common/Gfx/TextFormat.h index 9926566e..418f077e 100644 --- a/Common/Gfx/TextFormat.h +++ b/Common/Gfx/TextFormat.h @@ -43,16 +43,16 @@ class __declspec(novtable) TextFormat public: virtual ~TextFormat(); - virtual bool IsInitialized() = 0; + virtual bool IsInitialized() const = 0; virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) = 0; virtual void SetTrimming(bool trim) = 0; virtual void SetHorizontalAlignment(HorizontalAlignment alignment); - HorizontalAlignment GetHorizontalAlignment() { return m_HorizontalAlignment; } + HorizontalAlignment GetHorizontalAlignment() const { return m_HorizontalAlignment; } virtual void SetVerticalAlignment(VerticalAlignment alignment); - VerticalAlignment GetVerticalAlignment() { return m_VerticalAlignment; } + VerticalAlignment GetVerticalAlignment() const { return m_VerticalAlignment; } protected: TextFormat(); diff --git a/Common/Gfx/TextFormatD2D.h b/Common/Gfx/TextFormatD2D.h index 55905d8e..10a0d769 100644 --- a/Common/Gfx/TextFormatD2D.h +++ b/Common/Gfx/TextFormatD2D.h @@ -30,7 +30,7 @@ public: TextFormatD2D(); virtual ~TextFormatD2D(); - virtual bool IsInitialized() { return m_TextFormat != nullptr; } + virtual bool IsInitialized() const override { return m_TextFormat != nullptr; } virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) override; virtual void SetTrimming(bool trim) override; diff --git a/Common/Gfx/TextFormatGDIP.h b/Common/Gfx/TextFormatGDIP.h index a9e25fe2..1189a5e2 100644 --- a/Common/Gfx/TextFormatGDIP.h +++ b/Common/Gfx/TextFormatGDIP.h @@ -30,7 +30,7 @@ public: TextFormatGDIP(); virtual ~TextFormatGDIP(); - virtual bool IsInitialized() { return m_Font != nullptr; } + virtual bool IsInitialized() const override { return m_Font != nullptr; } virtual void SetProperties(const WCHAR* fontFamily, int size, bool bold, bool italic, Gdiplus::PrivateFontCollection* fontCollection) override; virtual void SetTrimming(bool trim) override;