QMacStyle: Set NSButton title to empty string, not nil
Fixes the following warning [-Wnonnull]: warning: null passed to a callee that requires a non-null argument Change-Id: I52f7dc338afdcfe0cd605281d1bf59025abb5ac6 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
This commit is contained in:
parent
04e8d72a64
commit
363498ee5a
@ -1867,7 +1867,7 @@ NSView *QMacStylePrivate::cocoaControl(QCocoaWidget widget) const
|
||||
|
||||
if ([bv isKindOfClass:[NSButton class]]) {
|
||||
NSButton *bc = (NSButton *)bv;
|
||||
bc.title = nil;
|
||||
bc.title = @"";
|
||||
}
|
||||
|
||||
if ([bv isKindOfClass:[NSControl class]]) {
|
||||
|
Loading…
Reference in New Issue
Block a user