]> 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 e4577b1c98ec36cab3c21295d023109235355ce9..fb9a4d051d21b7b7cb95c5d71a1b0994f3dc07c2 100644 (file)
 #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/log.h"
 #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