OSX GUI - Prevent compiler errors when -std=c++11 is switched on
This commit is contained in:
parent
6602c6659e
commit
e38cb7de36
|
@ -658,7 +658,7 @@ AUPluginUI::parent_cocoa_window ()
|
|||
|
||||
/* 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];
|
||||
[view addSubview:au_view positioned:NSWindowBelow relativeTo:nil];
|
||||
|
|
|
@ -112,7 +112,7 @@ set_language_preference ()
|
|||
break;
|
||||
}
|
||||
}
|
||||
NSRange r = { 0, count };
|
||||
NSRange r = { 0, static_cast<NSUInteger> (count) };
|
||||
setenv ("LANGUAGE", [[[languages subarrayWithRange:r] componentsJoinedByString:@":"] UTF8String], 0);
|
||||
cout << "LANGUAGE set to " << getenv ("LANGUAGE") << endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue