]> git.saurik.com Git - wxWidgets.git/commitdiff
wxOSX/Carbon compilation fix after wxListBoxBase changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Oct 2010 10:27:32 +0000 (10:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Oct 2010 10:27:32 +0000 (10:27 +0000)
Making wxListBoxBase::CalcAndSendEvent() broke wxOSX/Carbon build, fix it by
making the class which needs to call it friend of wxListBox in this port.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/listbox.h

index 870fe8f2729ac520b53ae4c64808c1b6cb1e55cf..2165dc9b18b2f56aefca3475926047e1404fbbe8 100644 (file)
@@ -168,6 +168,11 @@ protected:
     wxArrayPtrVoid m_itemsClientData;
 
 private:
+#ifdef __WXOSX_CARBON__
+    // It needs to call our CalcAndSendEvent().
+    friend class wxMacDataBrowserListControl;
+#endif // Carbon
+
     DECLARE_DYNAMIC_CLASS(wxListBox)
     DECLARE_EVENT_TABLE()
 };