From 5ac2e80ca299919ce51415cc79f6a7a4951970c5 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 14 Jul 2004 16:33:17 +0000 Subject: [PATCH] making getter const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/font.h | 2 +- include/wx/gtk/font.h | 2 +- include/wx/gtk1/font.h | 2 +- include/wx/mac/carbon/font.h | 2 +- include/wx/mac/classic/font.h | 2 +- include/wx/x11/font.h | 2 +- src/gtk/font.cpp | 4 ++-- src/gtk1/font.cpp | 4 ++-- src/mac/carbon/font.cpp | 4 ++-- src/x11/font.cpp | 4 ++-- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/wx/font.h b/include/wx/font.h index 329fc58c76..14935c6833 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -185,7 +185,7 @@ public: // Unofficial API, don't use virtual void SetNoAntiAliasing( bool WXUNUSED(no) = TRUE ) { } - virtual bool GetNoAntiAliasing() { return FALSE; } + virtual bool GetNoAntiAliasing() const { return FALSE; } // the default encoding is used for creating all fonts with default // encoding parameter diff --git a/include/wx/gtk/font.h b/include/wx/gtk/font.h index a3daf930e3..1502d7bf6d 100644 --- a/include/wx/gtk/font.h +++ b/include/wx/gtk/font.h @@ -96,7 +96,7 @@ public: virtual void SetEncoding(wxFontEncoding encoding); virtual void SetNoAntiAliasing( bool no = true ); - virtual bool GetNoAntiAliasing(); + virtual bool GetNoAntiAliasing() const ; // implementation from now on void Unshare(); diff --git a/include/wx/gtk1/font.h b/include/wx/gtk1/font.h index a3daf930e3..1502d7bf6d 100644 --- a/include/wx/gtk1/font.h +++ b/include/wx/gtk1/font.h @@ -96,7 +96,7 @@ public: virtual void SetEncoding(wxFontEncoding encoding); virtual void SetNoAntiAliasing( bool no = true ); - virtual bool GetNoAntiAliasing(); + virtual bool GetNoAntiAliasing() const ; // implementation from now on void Unshare(); diff --git a/include/wx/mac/carbon/font.h b/include/wx/mac/carbon/font.h index 5968f65705..5221529194 100644 --- a/include/wx/mac/carbon/font.h +++ b/include/wx/mac/carbon/font.h @@ -96,7 +96,7 @@ public: // Unofficial API, don't use virtual void SetNoAntiAliasing( bool noAA = TRUE ) ; - virtual bool GetNoAntiAliasing() ; + virtual bool GetNoAntiAliasing() const ; // Mac-specific, risks to change, don't use in portable code short MacGetFontNum() const; diff --git a/include/wx/mac/classic/font.h b/include/wx/mac/classic/font.h index 78aa2f4d5f..ec29d6daf7 100644 --- a/include/wx/mac/classic/font.h +++ b/include/wx/mac/classic/font.h @@ -94,7 +94,7 @@ public: // Unofficial API, don't use virtual void SetNoAntiAliasing( bool noAA = TRUE ) ; - virtual bool GetNoAntiAliasing() ; + virtual bool GetNoAntiAliasing() const ; // Mac-specific, risks to change, don't use in portable code short GetMacFontNum() const; diff --git a/include/wx/x11/font.h b/include/wx/x11/font.h index a4739023f6..d2ee13045a 100644 --- a/include/wx/x11/font.h +++ b/include/wx/x11/font.h @@ -84,7 +84,7 @@ public: virtual void SetEncoding(wxFontEncoding encoding); virtual void SetNoAntiAliasing( bool no = TRUE ); - virtual bool GetNoAntiAliasing(); + virtual bool GetNoAntiAliasing() const ; // Implementation diff --git a/src/gtk/font.cpp b/src/gtk/font.cpp index 20ce420439..6201232e19 100644 --- a/src/gtk/font.cpp +++ b/src/gtk/font.cpp @@ -97,7 +97,7 @@ public: void SetEncoding(wxFontEncoding encoding); void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; } - bool GetNoAntiAliasing() { return m_noAA; } + bool GetNoAntiAliasing() const { return m_noAA; } // and this one also modifies all the other font data fields void SetNativeFontInfo(const wxNativeFontInfo& info); @@ -774,7 +774,7 @@ wxFontEncoding wxFont::GetEncoding() const return M_FONTDATA->m_encoding; } -bool wxFont::GetNoAntiAliasing() +bool wxFont::GetNoAntiAliasing() const { wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") ); diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 20ce420439..6201232e19 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -97,7 +97,7 @@ public: void SetEncoding(wxFontEncoding encoding); void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; } - bool GetNoAntiAliasing() { return m_noAA; } + bool GetNoAntiAliasing() const { return m_noAA; } // and this one also modifies all the other font data fields void SetNativeFontInfo(const wxNativeFontInfo& info); @@ -774,7 +774,7 @@ wxFontEncoding wxFont::GetEncoding() const return M_FONTDATA->m_encoding; } -bool wxFont::GetNoAntiAliasing() +bool wxFont::GetNoAntiAliasing() const { wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") ); diff --git a/src/mac/carbon/font.cpp b/src/mac/carbon/font.cpp index 1b9416748d..4ec3390c54 100644 --- a/src/mac/carbon/font.cpp +++ b/src/mac/carbon/font.cpp @@ -95,7 +95,7 @@ public: virtual ~wxFontRefData(); void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; } - bool GetNoAntiAliasing() { return m_noAA; } + bool GetNoAntiAliasing() const { return m_noAA; } protected: // common part of all ctors @@ -477,7 +477,7 @@ wxFontEncoding wxFont::GetEncoding() const return M_FONTDATA->m_encoding; } -bool wxFont::GetNoAntiAliasing() +bool wxFont::GetNoAntiAliasing() const { wxCHECK_MSG( M_FONTDATA != NULL , NULL, wxT("invalid font") ); return M_FONTDATA->m_noAA; diff --git a/src/x11/font.cpp b/src/x11/font.cpp index 4eaee81f00..be44d65a0d 100644 --- a/src/x11/font.cpp +++ b/src/x11/font.cpp @@ -123,7 +123,7 @@ public: void SetEncoding(wxFontEncoding encoding); void SetNoAntiAliasing( bool no = TRUE ) { m_noAA = no; } - bool GetNoAntiAliasing() { return m_noAA; } + bool GetNoAntiAliasing() const { return m_noAA; } // and this one also modifies all the other font data fields void SetNativeFontInfo(const wxNativeFontInfo& info); @@ -745,7 +745,7 @@ wxFontEncoding wxFont::GetEncoding() const return M_FONTDATA->m_encoding; } -bool wxFont::GetNoAntiAliasing() +bool wxFont::GetNoAntiAliasing() const { wxCHECK_MSG( Ok(), wxFONTENCODING_DEFAULT, wxT("invalid font") ); -- 2.45.2