OSX/locale: fix compile on older xcode by not using toll-free-bridging, which needs ARC
This commit is contained in:
parent
34b30f8474
commit
f1f702a5ec
@ -584,7 +584,8 @@ GHOST_SystemCocoa::GHOST_SystemCocoa()
|
||||
|
||||
//Get current locale
|
||||
CFLocaleRef myCFLocale = CFLocaleCopyCurrent();
|
||||
NSLocale *myNSLocale = (NSLocale *)CFBridgingRelease(myCFLocale);
|
||||
NSLocale * myNSLocale = (NSLocale *) myCFLocale;
|
||||
[myNSLocale autorelease];
|
||||
NSString *nsIdentifier = [myNSLocale localeIdentifier];
|
||||
user_locale = [nsIdentifier UTF8String];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user