This commit is contained in:
@@ -22,13 +22,13 @@ bool LaunchBrowser(const char *inUtf8URL)
|
|||||||
std::string CapabilitiesGetLanguage()
|
std::string CapabilitiesGetLanguage()
|
||||||
{
|
{
|
||||||
#ifndef OBJC_ARC
|
#ifndef OBJC_ARC
|
||||||
//NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
#endif
|
#endif
|
||||||
NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];
|
NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];
|
||||||
std::string result(language?[language UTF8String]:"");
|
std::string result(language?[language UTF8String]:"");
|
||||||
#ifndef OBJC_ARC
|
#ifndef OBJC_ARC
|
||||||
[language release];
|
//[language release];
|
||||||
//[pool drain];
|
[pool drain];
|
||||||
#endif
|
#endif
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user