]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/core/hid.cpp
respecting more of the toolbar positions (tb_right not yet working), and fixing SetSi...
[wxWidgets.git] / src / osx / core / hid.cpp
index 8b09c43ff24982ee4ffb658182fa5b3a1eaf52ec..7430e714c581493a8bdd038fd627768586084446 100644 (file)
@@ -376,7 +376,7 @@ bool wxHIDDevice::IsActive(int nIndex)
 // ----------------------------------------------------------------------------
 bool wxHIDDevice::HasElement(int nIndex)
 {
-    return m_pCookies[nIndex] != NULL;
+    return (void*) m_pCookies[nIndex] != NULL;
 }
 
 // ----------------------------------------------------------------------------
@@ -651,6 +651,7 @@ class wxHIDModule : public wxModule
         {
             for(size_t i = 0; i < sm_keyboards.GetCount(); ++i)
                 delete (wxHIDKeyboard*) sm_keyboards[i];
+               sm_keyboards.Clear(); 
         }
 };