X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0822896b3354f8698835d234ce2655daa640704..050c9e3c90c58b05d5b3f7384d1556ca9669f13e:/src/mac/carbon/clipbrd.cpp?ds=inline diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index cb69904f95..2f7651852a 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -80,7 +80,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len) } else { - delete[] data ; + delete[] ((char *)data) ; data = NULL ; } } @@ -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] ;