X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df91131cb0f90ee8bfb194926a13b1a108ca3c6e..409e6ce4dcd39c6dfe8b77cbd56d451ffe5c731c:/src/mac/corefoundation/hid.cpp diff --git a/src/mac/corefoundation/hid.cpp b/src/mac/corefoundation/hid.cpp index e4577b1c98..fb9a4d051d 100644 --- a/src/mac/corefoundation/hid.cpp +++ b/src/mac/corefoundation/hid.cpp @@ -32,14 +32,13 @@ #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