From 595ec11a45d93039cb19ea5584c5d9d5bf240d1a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 4 Jun 2003 21:26:50 +0000 Subject: [PATCH 1/1] casts correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dnd.cpp | 6 +++--- src/mac/dnd.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mac/carbon/dnd.cpp b/src/mac/carbon/dnd.cpp index f82e12418f..8372417d08 100644 --- a/src/mac/carbon/dnd.cpp +++ b/src/mac/carbon/dnd.cpp @@ -379,7 +379,7 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags)) gTrackingGlobals.m_currentSource = NULL ; KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult dndresult = optionDown ? wxDragCopy : wxDragMove; return dndresult; @@ -435,7 +435,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(DragTrackingMessage theMessage, Wind wxTopLevelWindowMac* toplevel = wxFindWinFromMacWindow( theWindow ) ; KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult result = optionDown ? wxDragCopy : wxDragMove; @@ -596,7 +596,7 @@ pascal OSErr wxMacWindowDragReceiveHandler(WindowPtr theWindow, if ( trackingGlobals->m_currentTarget->OnDrop( localx , localy ) ) { KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult result = optionDown ? wxDragCopy : wxDragMove; trackingGlobals->m_currentTarget->OnData( localx , localy , result ) ; diff --git a/src/mac/dnd.cpp b/src/mac/dnd.cpp index f82e12418f..8372417d08 100644 --- a/src/mac/dnd.cpp +++ b/src/mac/dnd.cpp @@ -379,7 +379,7 @@ wxDragResult wxDropSource::DoDragDrop(int WXUNUSED(flags)) gTrackingGlobals.m_currentSource = NULL ; KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult dndresult = optionDown ? wxDragCopy : wxDragMove; return dndresult; @@ -435,7 +435,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(DragTrackingMessage theMessage, Wind wxTopLevelWindowMac* toplevel = wxFindWinFromMacWindow( theWindow ) ; KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult result = optionDown ? wxDragCopy : wxDragMove; @@ -596,7 +596,7 @@ pascal OSErr wxMacWindowDragReceiveHandler(WindowPtr theWindow, if ( trackingGlobals->m_currentTarget->OnDrop( localx , localy ) ) { KeyMap keymap; - GetKeys((BigEndianLong*)&keymap); + GetKeys(keymap); bool optionDown = keymap[1] & 4; wxDragResult result = optionDown ? wxDragCopy : wxDragMove; trackingGlobals->m_currentTarget->OnData( localx , localy , result ) ; -- 2.45.2