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