CopyFromBitmap( bmp ) ;
}
-wxIcon::wxIcon( const char **bits )
-{
- wxBitmap bmp( bits ) ;
- CopyFromBitmap( bmp ) ;
-}
-
-wxIcon::wxIcon( char **bits )
+wxIcon::wxIcon(const char* const* bits)
{
wxBitmap bmp( bits ) ;
CopyFromBitmap( bmp ) ;
HLock((Handle) iconFamily);
OSStatus err = GetIconRefFromIconFamilyPtr( *iconFamily, GetHandleSize((Handle) iconFamily), &iconRef );
HUnlock((Handle) iconFamily);
- wxASSERT_MSG( err == noErr , wxT("Error when constructing icon ref") );
+ if ( err != noErr )
+ {
+ wxFAIL_MSG("Error when constructing icon ref");
+ }
+
ReleaseResource( resHandle ) ;
}
}