Codechange: pass std::string references to OpenBrowser
This commit is contained in:
@@ -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() ] ] ];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user