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:
Tor Arne Vestbø 2015-10-06 14:17:05 +02:00
parent 04e8d72a64
commit 363498ee5a

View File

@ -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]]) {