Mac: fix compile errors caused by upgrade to C++11

This commit is contained in:
Charlie Fenton 2021-03-31 03:42:25 -07:00
parent fa9f9313c9
commit 7710c0fe6f
2 changed files with 6 additions and 6 deletions

View File

@ -329,7 +329,7 @@ static void wxRectToNSRect(wxRect &wxr, NSRect &nsr) {
return [NSNumber numberWithBool:YES];
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return NO;
return [NSNumber numberWithBool:NO];
} else if ([attribute isEqualToString:NSAccessibilityRoleAttribute]) {
return NSAccessibilityStaticTextRole;
@ -626,7 +626,7 @@ static void wxRectToNSRect(wxRect &wxr, NSRect &nsr) {
return [NSNumber numberWithBool:YES];
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return NO;
return [NSNumber numberWithBool:NO];
} else if ([attribute isEqualToString:NSAccessibilityParentAttribute]) {
return NSAccessibilityUnignoredAncestor(parent);
@ -926,7 +926,7 @@ static void wxRectToNSRect(wxRect &wxr, NSRect &nsr) {
return NSAccessibilityRoleDescription(NSAccessibilityListRole, nil);
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return NO;
return [NSNumber numberWithBool:NO];
} else if ([attribute isEqualToString:NSAccessibilityParentAttribute]) {
return NSAccessibilityUnignoredAncestor(parent);
@ -1248,7 +1248,7 @@ static BOOL AccessibilityEnabled = false;
return NSAccessibilityRoleDescription(NSAccessibilityGroupRole, nil);
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return NO;
return [NSNumber numberWithBool:NO];
} else if ([attribute isEqualToString:NSAccessibilityParentAttribute]) {
return NSAccessibilityUnignoredAncestor(parent);
@ -1540,7 +1540,7 @@ void CBOINCListCtrl::RemoveMacAccessibilitySupport() {
return [NSNumber numberWithBool:YES];
} else if ([attribute isEqualToString:NSAccessibilityFocusedAttribute]) {
return NO;
return [NSNumber numberWithBool:NO];
} else if ([attribute isEqualToString:NSAccessibilityNumberOfCharactersAttribute]) {
NSString *s = [self getValue];

View File

@ -317,7 +317,7 @@ CScreensaver::CScreensaver() {
m_iGraphicsStartingMsgCounter = 0;
saverState = SaverState_Idle;
m_wasAlreadyRunning = false;
m_CoreClientPID = nil;
m_CoreClientPID = 0;
setSSMessageText(0);
m_CurrentBannerMessage = 0;
m_bQuitDataManagementProc = false;