X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d5e73073039ed49d1b19649e14e5e18ba1a599f..ff143598418fd629bb08e22d2f46bc8be6dddfc1:/src/mac/clipbrd.cpp?ds=sidebyside diff --git a/src/mac/clipbrd.cpp b/src/mac/clipbrd.cpp index f493b5bf65..0d59db9a44 100644 --- a/src/mac/clipbrd.cpp +++ b/src/mac/clipbrd.cpp @@ -254,7 +254,7 @@ bool wxClipboard::AddData( wxDataObject *data ) wxMetafileDataObject* metaFileDataObject = (wxMetafileDataObject*) data; wxMetafile metaFile = metaFileDataObject->GetMetafile(); - PicHandle pict = metaFile->GetHMETAFILE() ; + PicHandle pict = metaFile.GetHMETAFILE() ; HLock( (Handle) pict ) ; #if !TARGET_CARBON err = PutScrap( GetHandleSize( (Handle) pict ) , 'PICT' , *pict ) ; @@ -363,11 +363,6 @@ bool wxClipboard::GetData( wxDataObject& data ) /* get formats from wxDataObjects */ if ( !transferred ) { - #if !TARGET_CARBON - OSErr err = noErr ; - #else - OSStatus err = noErr ; - #endif for (size_t i = 0; !transferred && i < formatcount ; i++) { wxDataFormat format = array[i] ;