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:
parent
e9d16e77a3
commit
b5c7019bf0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user