Codechange: pass std::string references to OpenBrowser

This commit is contained in:
rubidium42
2023-11-28 20:17:05 -04:00
committed by rubidium42
parent 8437b20fed
commit 27082f9efa
10 changed files with 19 additions and 19 deletions

View File

@@ -143,9 +143,9 @@ void ShowOSErrorBox(const char *buf, bool system)
}
}
void OSOpenBrowser(const char *url)
void OSOpenBrowser(const std::string &url)
{
[ [ NSWorkspace sharedWorkspace ] openURL:[ NSURL URLWithString:[ NSString stringWithUTF8String:url ] ] ];
[ [ NSWorkspace sharedWorkspace ] openURL:[ NSURL URLWithString:[ NSString stringWithUTF8String:url.c_str() ] ] ];
}
/**