X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cd51b2d275da04105d861b64073eef2e3aa3993..80c82e01758cd838aa5c922b848454277b11da26:/src/mac/clipbrd.cpp diff --git a/src/mac/clipbrd.cpp b/src/mac/clipbrd.cpp index a85398f27f..ff814a588c 100644 --- a/src/mac/clipbrd.cpp +++ b/src/mac/clipbrd.cpp @@ -202,8 +202,6 @@ bool wxClipboard::AddData( wxDataObject *data ) wxCHECK_MSG( data, FALSE, wxT("data is invalid") ); - wxDataFormat format = data->GetPreferredFormat(); - /* we can only store one wxDataObject */ Clear(); @@ -336,7 +334,7 @@ bool wxClipboard::GetData( wxDataObject& data ) { wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") ); - int formatcount = data.GetFormatCount() + 1 ; + size_t formatcount = data.GetFormatCount() + 1 ; wxDataFormat *array = new wxDataFormat[ formatcount ]; array[0] = data.GetPreferredFormat(); data.GetAllFormats( &array[1] );