5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-18 18:09:30 +08:00

Fix compile warnings

This commit is contained in:
Lea Anthony 2021-01-26 06:37:33 +11:00
parent e9d16e77a3
commit b5c7019bf0
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -152,7 +152,7 @@ void Fatal(struct Application *app, const char *message, ... ) {
// Requires NSString input EG lookupStringConstant(str("NSFontAttributeName"))
void* lookupStringConstant(id constantName) {
void ** dataPtr = CFBundleGetDataPointerForName(CFBundleGetBundleWithIdentifier(str("com.apple.AppKit")), (CFStringRef) constantName);
void ** dataPtr = CFBundleGetDataPointerForName(CFBundleGetBundleWithIdentifier((CFStringRef)str("com.apple.AppKit")), (CFStringRef) constantName);
return (dataPtr ? *dataPtr : nil);
}