mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1221451: Don't pass nil when an argument is required. r=spohl
This commit is contained in:
parent
f1d4fc503c
commit
f721ea14ba
@ -1936,8 +1936,8 @@ TextInputHandler::HandleFlagsChanged(NSEvent* aNativeEvent)
|
||||
timestamp:[aNativeEvent timestamp]
|
||||
windowNumber:[aNativeEvent windowNumber]
|
||||
context:[aNativeEvent context]
|
||||
characters:nil
|
||||
charactersIgnoringModifiers:nil
|
||||
characters:@""
|
||||
charactersIgnoringModifiers:@""
|
||||
isARepeat:NO
|
||||
keyCode:keyCode];
|
||||
DispatchKeyEventForFlagsChanged(event, dispatchKeyDown);
|
||||
|
@ -526,24 +526,24 @@ nsNativeThemeCocoa::nsNativeThemeCocoa()
|
||||
// before the main event-loop pool is in place
|
||||
nsAutoreleasePool pool;
|
||||
|
||||
mDisclosureButtonCell = [[NSButtonCell alloc] initTextCell:nil];
|
||||
mDisclosureButtonCell = [[NSButtonCell alloc] initTextCell:@""];
|
||||
[mDisclosureButtonCell setBezelStyle:NSRoundedDisclosureBezelStyle];
|
||||
[mDisclosureButtonCell setButtonType:NSPushOnPushOffButton];
|
||||
[mDisclosureButtonCell setHighlightsBy:NSPushInCellMask];
|
||||
|
||||
mHelpButtonCell = [[NSButtonCell alloc] initTextCell:nil];
|
||||
mHelpButtonCell = [[NSButtonCell alloc] initTextCell:@""];
|
||||
[mHelpButtonCell setBezelStyle:NSHelpButtonBezelStyle];
|
||||
[mHelpButtonCell setButtonType:NSMomentaryPushInButton];
|
||||
[mHelpButtonCell setHighlightsBy:NSPushInCellMask];
|
||||
|
||||
mPushButtonCell = [[NSButtonCell alloc] initTextCell:nil];
|
||||
mPushButtonCell = [[NSButtonCell alloc] initTextCell:@""];
|
||||
[mPushButtonCell setButtonType:NSMomentaryPushInButton];
|
||||
[mPushButtonCell setHighlightsBy:NSPushInCellMask];
|
||||
|
||||
mRadioButtonCell = [[RadioButtonCell alloc] initTextCell:nil];
|
||||
mRadioButtonCell = [[RadioButtonCell alloc] initTextCell:@""];
|
||||
[mRadioButtonCell setButtonType:NSRadioButton];
|
||||
|
||||
mCheckboxCell = [[CheckboxCell alloc] initTextCell:nil];
|
||||
mCheckboxCell = [[CheckboxCell alloc] initTextCell:@""];
|
||||
[mCheckboxCell setButtonType:NSSwitchButton];
|
||||
[mCheckboxCell setAllowsMixedState:YES];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user