]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/corefoundation/hid.cpp
Removed the old, manual entry function, macro, and class category pages and replaced...
[wxWidgets.git] / src / mac / corefoundation / hid.cpp
index e052ab50636bc239f8eb2ae29cf26a3bc76fcbd7..fb9a4d051d21b7b7cb95c5d71a1b0994f3dc07c2 100644 (file)
     #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/cfstring.h"
 
-#include "wx/utils.h"
-#include "wx/module.h"
-
 // ============================================================================
 // implementation
 // ============================================================================
@@ -141,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