OSX GUI - Prevent compiler errors when -std=c++11 is switched on

This commit is contained in:
Michael R. Fisher 2013-07-15 16:35:20 -05:00 committed by Michael Fisher
parent 9cb678ebcc
commit 7f6765ece4
2 changed files with 2 additions and 2 deletions

View file

@ -658,7 +658,7 @@ AUPluginUI::parent_cocoa_window ()
/* move the au_view down so that it doesn't overlap the top_box contents */ /* move the au_view down so that it doesn't overlap the top_box contents */
NSPoint origin = { 0, a.height }; NSPoint origin = { 0, static_cast<CGFloat> (a.height) };
[au_view setFrameOrigin:origin]; [au_view setFrameOrigin:origin];
[view addSubview:au_view positioned:NSWindowBelow relativeTo:nil]; [view addSubview:au_view positioned:NSWindowBelow relativeTo:nil];

View file

@ -112,7 +112,7 @@ set_language_preference ()
break; break;
} }
} }
NSRange r = { 0, count }; NSRange r = { 0, static_cast<NSUInteger> (count) };
setenv ("LANGUAGE", [[[languages subarrayWithRange:r] componentsJoinedByString:@":"] UTF8String], 0); setenv ("LANGUAGE", [[[languages subarrayWithRange:r] componentsJoinedByString:@":"] UTF8String], 0);
cout << "LANGUAGE set to " << getenv ("LANGUAGE") << endl; cout << "LANGUAGE set to " << getenv ("LANGUAGE") << endl;
} }