Skip to content

Commit

Permalink
Revert "Warning: 'kIOMasterPortDefault' is deprecated"
Browse files Browse the repository at this point in the history
But since we still support macos 10.15 we stick with it.
This reverts commit d0aee7e.
  • Loading branch information
chris2511 committed Oct 15, 2023
1 parent 432293a commit cd1c148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ QString hostId()

#elif defined(Q_OS_MACOS)
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(
kIOMainPortDefault, "IOService:/");
kIOMasterPortDefault, "IOService:/");
CFStringRef uuidCf = (CFStringRef)IORegistryEntryCreateCFProperty(
ioRegistryRoot, CFSTR(kIOPlatformUUIDKey),
kCFAllocatorDefault, 0);
Expand Down

0 comments on commit cd1c148

Please sign in to comment.