diff options
author | Colin Snover | 2017-12-05 11:24:39 -0600 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-18 16:30:05 +0200 |
commit | d43732ac47bacab53578c6217cb4dbd42da6b9c6 (patch) | |
tree | 0a4227c6ef48564a2e702a20adced010ee74dbda /backends/platform/ios7/ios7_osys_video.mm | |
parent | 481b608c51858d0b6afc3cfb461664fc9575c6a0 (diff) | |
download | scummvm-rg350-d43732ac47bacab53578c6217cb4dbd42da6b9c6.tar.gz scummvm-rg350-d43732ac47bacab53578c6217cb4dbd42da6b9c6.tar.bz2 scummvm-rg350-d43732ac47bacab53578c6217cb4dbd42da6b9c6.zip |
IOS: Replace strdup with Common::String
Diffstat (limited to 'backends/platform/ios7/ios7_osys_video.mm')
-rw-r--r-- | backends/platform/ios7/ios7_osys_video.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/ios7/ios7_osys_video.mm b/backends/platform/ios7/ios7_osys_video.mm index 30f8950ec6..730715d2a1 100644 --- a/backends/platform/ios7/ios7_osys_video.mm +++ b/backends/platform/ios7/ios7_osys_video.mm @@ -52,8 +52,8 @@ static void displayAlert(void *ctx) { } void OSystem_iOS7::fatalError() { - if (_lastErrorMessage) { - dispatch_async_f(dispatch_get_main_queue(), _lastErrorMessage, displayAlert); + if (_lastErrorMessage.size()) { + dispatch_async_f(dispatch_get_main_queue(), (void *)_lastErrorMessage.c_str(), displayAlert); for(;;); } else { |