cleanup - added some error checking, reformatting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Surovell
2006-03-17 19:11:32 +00:00
parent 7358f9073d
commit e542ecc6f6
3 changed files with 71 additions and 67 deletions

View File

@@ -96,7 +96,7 @@ void wxDataFormat::SetType( wxDataFormatId dataType )
wxString wxDataFormat::GetId() const
{
wxCHECK_MSG( !IsStandard(), wxEmptyString ,
wxCHECK_MSG( !IsStandard(), wxEmptyString,
wxT("name of predefined format cannot be retrieved") );
return m_id;
@@ -342,8 +342,8 @@ bool wxBitmapDataObject::SetData( size_t nSize, const void *pBuf )
// ownership is transferred to the bitmap
m_pictCreated = false;
Rect frame ;
wxMacGetPictureBounds( picHandle , &frame ) ;
Rect frame;
wxMacGetPictureBounds( picHandle, &frame );
wxMetafile mf;
mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle );