X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9020f0b220ca2fdd28dc75d302011b0aea9d0f9..71a09c3579dd5cb4cd8fa7fdc143561cbff74e12:/src/osx/carbon/icon.cpp?ds=sidebyside diff --git a/src/osx/carbon/icon.cpp b/src/osx/carbon/icon.cpp index d99c5a1e64..51b3e34f40 100644 --- a/src/osx/carbon/icon.cpp +++ b/src/osx/carbon/icon.cpp @@ -4,7 +4,6 @@ // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 -// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -137,21 +136,21 @@ wxIcon::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const WXHICON wxIcon::GetHICON() const { - wxASSERT( Ok() ) ; + wxASSERT( IsOk() ) ; return (WXHICON) ((wxIconRefData*)m_refData)->GetHICON() ; } int wxIcon::GetWidth() const { - wxCHECK_MSG( Ok(), -1, wxT("invalid icon") ); + wxCHECK_MSG( IsOk(), -1, wxT("invalid icon") ); return M_ICONDATA->GetWidth(); } int wxIcon::GetHeight() const { - wxCHECK_MSG( Ok(), -1, wxT("invalid icon") ); + wxCHECK_MSG( IsOk(), -1, wxT("invalid icon") ); return M_ICONDATA->GetHeight(); } @@ -381,7 +380,7 @@ bool wxIcon::LoadIconFromFile(const wxString& filename, int desiredWidth, int de if( err == noErr ) { - // If everthing is OK, assign m_refData + // If everything is OK, assign m_refData m_refData = new wxIconRefData( (WXHICON) iconRef, desiredWidth, desiredHeight ); result = true; } @@ -414,7 +413,7 @@ bool wxIcon::LoadIconAsBitmap(const wxString& filename, wxBitmapType type, int d else { wxImage loadimage( filename, type ); - if (loadimage.Ok()) + if (loadimage.IsOk()) { if ( desiredWidth == -1 ) desiredWidth = loadimage.GetWidth() ; @@ -467,7 +466,7 @@ bool wxICONResourceHandler::LoadFile( if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ) { bitmap->CopyFromIcon( icon ) ; - return bitmap->Ok() ; + return bitmap->IsOk() ; } return false; }