X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..936f635341e9b92b37db93cc7781d564babbe25f:/src/mac/corefoundation/hid.cpp?ds=sidebyside diff --git a/src/mac/corefoundation/hid.cpp b/src/mac/corefoundation/hid.cpp index f072b71b46..fb9a4d051d 100644 --- a/src/mac/corefoundation/hid.cpp +++ b/src/mac/corefoundation/hid.cpp @@ -34,12 +34,11 @@ #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/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