ALL: fix a bunch of const warnings

Also while add it, constify some code
This commit is contained in:
Max Horn 2020-04-17 02:42:39 +02:00 committed by Thierry Crozat
parent 10e934ffa7
commit 08b4639cbb
6 changed files with 23 additions and 23 deletions

View file

@ -147,7 +147,7 @@ bool OSystem_MacOSX::setTextInClipboard(const Common::String &text) {
}
bool OSystem_MacOSX::openUrl(const Common::String &url) {
CFURLRef urlRef = CFURLCreateWithBytes (NULL, (UInt8*)url.c_str(), url.size(), kCFStringEncodingASCII, NULL);
CFURLRef urlRef = CFURLCreateWithBytes (NULL, (const UInt8*)url.c_str(), url.size(), kCFStringEncodingASCII, NULL);
OSStatus err = LSOpenCFURLRef(urlRef, NULL);
CFRelease(urlRef);
return err == noErr;