Fix wxDataViewCtrl compilation with 10.7 SDK under OS X.

Add the required casts to wxPointerObject.

Closes #13661.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-12-04 19:23:42 +00:00
parent b54a0e3913
commit f0e867e97c
2 changed files with 14 additions and 17 deletions

View File

@@ -20,6 +20,9 @@
#include "wx/dcclient.h"
#include "wx/icon.h"
#endif
#if wxOSX_USE_CARBON
#include "wx/osx/carbon/dataview.h"
#endif
#include "wx/osx/core/dataview.h"
#include "wx/osx/private.h"
@@ -706,11 +709,10 @@ void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
{
event.Skip();
#if wxOSX_USE_CARBON
if (GetModel() == NULL)
return;
#if 0
// Doesn't compile anymore
wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(m_peer));
int NoOfChildren;
@@ -750,7 +752,6 @@ void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
}
}
SetCursor( *wxSTANDARD_CURSOR );
#endif
}