diff options
author | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:33:31 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:33:31 +0000 |
commit | 8484e08ee0a55f0615ab747a41741d2925c7ff93 (patch) | |
tree | 3b3e34a3576cf1be3dfaedb5e26395d5adfb3d43 /src/os/macosx | |
parent | dffd1be12d18a3ff0476a9dab4aaa696f58e9af4 (diff) | |
download | openttd-8484e08ee0a55f0615ab747a41741d2925c7ff93.tar.xz |
(svn r17711) -Codechange: [OSX] Don't use deprecated methods to construct a Cocoa string.
Diffstat (limited to 'src/os/macosx')
-rw-r--r-- | src/os/macosx/macos.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm index 35c5cb061..8ec1fdc81 100644 --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -59,7 +59,7 @@ void GetMacOSVersion(int *return_major, int *return_minor, int *return_bugfix) void ShowMacDialog(const char *title, const char *message, const char *buttonLabel) { - NSRunAlertPanel([NSString stringWithCString: title], [NSString stringWithCString: message], [NSString stringWithCString: buttonLabel], nil, nil); + NSRunAlertPanel([ NSString stringWithUTF8String:title ], [ NSString stringWithUTF8String:message ], [ NSString stringWithUTF8String:buttonLabel ], nil, nil); } #elif defined WITH_COCOA |