fix a couple of harmless warnings during wxOSX build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -784,7 +784,7 @@ void * wxFont::MacGetATSUStyle() const
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
wxUint32 wxFont::MacGetATSUFontID() const
|
||||
{
|
||||
wxCHECK_MSG( M_FONTDATA != NULL , NULL, wxT("invalid font") );
|
||||
wxCHECK_MSG( M_FONTDATA != NULL, 0, wxT("invalid font") );
|
||||
|
||||
// cast away constness otherwise lazy font resolution is not possible
|
||||
const_cast<wxFont *>(this)->RealizeResource();
|
||||
@@ -794,7 +794,7 @@ wxUint32 wxFont::MacGetATSUFontID() const
|
||||
|
||||
wxUint32 wxFont::MacGetATSUAdditionalQDStyles() const
|
||||
{
|
||||
wxCHECK_MSG( M_FONTDATA != NULL , NULL, wxT("invalid font") );
|
||||
wxCHECK_MSG( M_FONTDATA != NULL, 0, wxT("invalid font") );
|
||||
|
||||
// cast away constness otherwise lazy font resolution is not possible
|
||||
const_cast<wxFont *>(this)->RealizeResource();
|
||||
@@ -1303,4 +1303,4 @@ void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding_)
|
||||
encoding_ = wxFont::GetDefaultEncoding();
|
||||
m_encoding = encoding_;
|
||||
// not reflected in native descriptors
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user