X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0ed460c2e7802793d591c84f3cfdbff159c5549..92049cd473c81fbce934e71796b2d841d5e605fa:/include/wx/msw/font.h diff --git a/include/wx/msw/font.h b/include/wx/msw/font.h index 32b37a954b..a7a6609d2f 100644 --- a/include/wx/msw/font.h +++ b/include/wx/msw/font.h @@ -44,7 +44,7 @@ protected: #define M_FONTDATA ((wxFontRefData *)m_refData) -WXDLLEXPORT_DATA(extern const char*) wxEmptyString; +WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; // Font class WXDLLEXPORT wxFont: public wxGDIObject @@ -68,7 +68,7 @@ public: virtual bool ReleaseResource(void); */ - virtual bool IsFree(void); + virtual bool IsFree() const; virtual bool Ok(void) const { return (m_refData != NULL) ; } inline int GetPointSize(void) const { return M_FONTDATA->m_pointSize; } @@ -89,9 +89,9 @@ public: void SetFaceName(const wxString& faceName); void SetUnderlined(bool underlined); - inline wxFont& operator = (const wxFont& font) { if (*this == font) return (*this); Ref(font); return *this; } - inline bool operator == (const wxFont& font) { return m_refData == font.m_refData; } - inline bool operator != (const wxFont& font) { return m_refData != font.m_refData; } + wxFont& operator = (const wxFont& font) { if (*this == font) return (*this); Ref(font); return *this; } + bool operator == (const wxFont& font) const { return m_refData == font.m_refData; } + bool operator != (const wxFont& font) const { return m_refData != font.m_refData; } protected: void Unshare();