]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/listbox_osx.cpp
Correct format specifiers used to show wxIPV4address.
[wxWidgets.git] / src / osx / listbox_osx.cpp
index 1394c130195283b7b6a63d90112278be305f6b9c..f89fd924d03566b12e81124839b617dae0a2f53f 100644 (file)
@@ -108,8 +108,7 @@ wxListBox::~wxListBox()
     m_blockEvents = false;
 
     // make sure no native events get sent to a object in destruction
-    delete m_peer;
-    m_peer = NULL;
+    wxDELETE(m_peer);
 
     if ( IsSorted() )
         delete m_strings.sorted;
@@ -208,6 +207,11 @@ int wxListBox::GetSelection() const
     return GetListPeer()->ListGetSelection();
 }
 
+int wxListBox::DoListHitTest(const wxPoint& inpoint) const
+{
+    return GetListPeer()->DoListHitTest( inpoint );
+}
+
 // ----------------------------------------------------------------------------
 // display
 // ----------------------------------------------------------------------------