]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/hid.cpp
document On{Open,Save}Document()
[wxWidgets.git] / src / mac / corefoundation / hid.cpp
index 276571c883f166d8ff9b342f6f5aee13ebad88a5..fb9a4d051d21b7b7cb95c5d71a1b0994f3dc07c2 100644 (file)
 //DARWIN _ONLY_
 #ifdef __DARWIN__
 
+#include "wx/mac/corefoundation/hid.h"
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
+    #include "wx/string.h"
+    #include "wx/log.h"
+    #include "wx/utils.h"
+    #include "wx/module.h"
 #endif
 
-#include "wx/mac/corefoundation/hid.h"
-#include "wx/string.h"
-#include "wx/log.h"
 #include "wx/mac/corefoundation/cfstring.h"
 
-#include "wx/utils.h"
-#include "wx/module.h"
-
 // ============================================================================
 // implementation
 // ============================================================================
@@ -140,8 +140,7 @@ bool wxHIDDevice::Create (int nClass, int nType, int nDev)
         CFStringRef cfsProduct = (CFStringRef)
             CFDictionaryGetValue(pDictionary, CFSTR(kIOHIDProductKey));
         m_szProductName =
-            wxMacCFStringHolder( cfsProduct,
-                                    false
+            wxCFStringRef( wxCFRetain(cfsProduct)
                                ).AsString();
 
         //Get the Product ID Key