diff options
author | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:36:17 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:36:17 +0000 |
commit | 9b54d5bbd79a2f6dcc988567914e45f162277009 (patch) | |
tree | 7e8b1b000898325a4bab68a5501bac07fe47c5ef /src/os | |
parent | ec90a8778f8f7eab718503279b9a31c78b989c2b (diff) | |
download | openttd-9b54d5bbd79a2f6dcc988567914e45f162277009.tar.xz |
(svn r17713) -Cleanup: [OSX] Move variable definitions to first use and apply more coding style.
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/macosx/macos.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm index 8ec1fdc81..a6c295790 100644 --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -97,9 +97,9 @@ void ShowOSErrorBox(const char *buf, bool system) const char *GetCurrentLocale(const char *) { static char retbuf[32] = { '\0' }; - NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; - NSArray *languages = [defs objectForKey:@"AppleLanguages"]; - NSString *preferredLang = [languages objectAtIndex:0]; + NSUserDefaults *defs = [ NSUserDefaults standardUserDefaults ]; + NSArray *languages = [ defs objectForKey:@"AppleLanguages" ]; + NSString *preferredLang = [ languages objectAtIndex:0 ]; /* preferredLang is either 2 or 5 characters long ("xx" or "xx_YY"). */ /* Since Apple introduced encoding to CString in OSX 10.4 we have to make a few conditions |