X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d1a4878f36ba4b5f66c2ccfd2cb27a9dc528b6f..c12a74b0d825dcb685e48fdc15e9c5d53eb5932b:/src/mac/carbon/hid.cpp diff --git a/src/mac/carbon/hid.cpp b/src/mac/carbon/hid.cpp index 3d17c726bd..3dec1a481e 100644 --- a/src/mac/carbon/hid.cpp +++ b/src/mac/carbon/hid.cpp @@ -118,11 +118,11 @@ bool wxHIDDevice::Create (const int& nClass, const int& nType) //Now get the maching services io_iterator_t pIterator; wxIOCHECK(IOServiceGetMatchingServices(m_pPort, pDictionary, &pIterator), "No Matching HID Services"); - wxASSERT(pIterator != NULL); + wxASSERT(pIterator != 0); //Now we iterate through them io_object_t pObject; - while ( (pObject = IOIteratorNext(pIterator)) != NULL) + while ( (pObject = IOIteratorNext(pIterator)) != 0) { wxVERIFY(IORegistryEntryCreateCFProperties(pObject, &pDictionary, kCFAllocatorDefault, kNilOptions) == KERN_SUCCESS);