wxDataFormat flavorFormat( (wxDataFormat::NativeFormat) flavorType );
if ( dataFormat == flavorFormat ||
- dataFormat.GetType() == wxDF_UNICODETEXT && flavorFormat.GetType() == wxDF_TEXT )
+ (dataFormat.GetType() == wxDF_UNICODETEXT && flavorFormat.GetType() == wxDF_TEXT) )
{
hasData = true;
}
{
Init();
- if (m_bitmap.Ok())
+ if (m_bitmap.IsOk())
{
SetBitmap( rBitmap );
}
{
Clear();
wxBitmapDataObjectBase::SetBitmap( rBitmap );
- if (m_bitmap.Ok())
+ if (m_bitmap.IsOk())
{
CGImageRef cgImageRef = (CGImageRef) m_bitmap.CreateCGImage();
if ( source )
{
cgImageRef = CGImageSourceCreateImageAtIndex(source, 0, NULL);
+ CFRelease( source );
}
- CFRelease( source );
CFRelease( data );
if ( cgImageRef )
cgImageRef = NULL;
}
- return m_bitmap.Ok();
+ return m_bitmap.IsOk();
}
#endif