Fix wxOSX compilation error after r75956.

wxScopedArray::get() needs to be explicitly called to access the array
contents as a pointer.

Closes #16015.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-02-22 14:14:32 +00:00
parent d479c2affa
commit 1911811fe6

View File

@ -178,7 +178,7 @@ wxDisplayImpl *wxDisplayFactoryMacOSX::CreateDisplay(unsigned n)
CGDisplayCount theCount = GetCount();
wxScopedArray<CGDirectDisplayID> theIDs(theCount);
CGDisplayErr err = wxOSXGetDisplayList(theCount, theIDs, &theCount);
CGDisplayErr err = wxOSXGetDisplayList(theCount, theIDs.get(), &theCount);
wxCHECK_MSG( err == CGDisplayNoErr, NULL, "wxOSXGetDisplayList() failed" );
wxCHECK_MSG( n < theCount, NULL, wxS("Invalid display index") );