From 1911811fe68774b1e893dd7303d98db5be4590e3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 Feb 2014 14:14:32 +0000 Subject: [PATCH] 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 --- src/osx/core/display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/core/display.cpp b/src/osx/core/display.cpp index 3fee1fef44..94efef4217 100644 --- a/src/osx/core/display.cpp +++ b/src/osx/core/display.cpp @@ -178,7 +178,7 @@ wxDisplayImpl *wxDisplayFactoryMacOSX::CreateDisplay(unsigned n) CGDisplayCount theCount = GetCount(); wxScopedArray 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") );