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

@@ -52,7 +52,7 @@ void ShowOSErrorBox(const char *buf, bool)
MessageBox(GetActiveWindow(), OTTD2FS(buf).c_str(), L"Error!", MB_ICONSTOP | MB_TASKMODAL);
}
void OSOpenBrowser(const char *url)
void OSOpenBrowser(const std::string &url)
{
ShellExecute(GetActiveWindow(), L"open", OTTD2FS(url).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
}