X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e40298d54ecd5b109222a7c60aa2ef084a304d69..0bba37f51ded370ee79e26916c4c94ce5dc1f44e:/src/mac/carbon/icon.cpp diff --git a/src/mac/carbon/icon.cpp b/src/mac/carbon/icon.cpp index ef4526a670..bd1937bc2a 100644 --- a/src/mac/carbon/icon.cpp +++ b/src/mac/carbon/icon.cpp @@ -83,19 +83,19 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo int desiredWidth, int desiredHeight) { short theId = -1 ; - if ( name == "wxICON_INFORMATION" ) + if ( name == wxT("wxICON_INFORMATION") ) { theId = kNoteIcon ; } - else if ( name == "wxICON_QUESTION" ) + else if ( name == wxT("wxICON_QUESTION") ) { theId = kCautionIcon ; } - else if ( name == "wxICON_WARNING" ) + else if ( name == wxT("wxICON_WARNING") ) { theId = kCautionIcon ; } - else if ( name == "wxICON_ERROR" ) + else if ( name == wxT("wxICON_ERROR") ) { theId = kStopIcon ; } @@ -103,13 +103,7 @@ bool wxICONResourceHandler::LoadFile(wxBitmap *bitmap, const wxString& name, lo { Str255 theName ; OSType theType ; - -#if TARGET_CARBON - c2pstrcpy( (StringPtr) theName , name ) ; -#else - strcpy( (char *) theName , name ) ; - c2pstr( (char *) theName ) ; -#endif + wxMacStringToPascal( name , theName ) ; Handle resHandle = GetNamedResource( 'cicn' , theName ) ; if ( resHandle != 0L )