Skip to content

Commit

Permalink
browse() should take const(char)[] parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Mar 26, 2016
1 parent 42625ce commit e938528
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/process.d
Expand Up @@ -3687,7 +3687,7 @@ version(StdDdoc)
/****************************************
* Start up the browser and set it to viewing the page at url.
*/
void browse(string url);
void browse(const(char)[] url);
}
else
version (Windows)
Expand All @@ -3696,7 +3696,7 @@ version (Windows)

pragma(lib,"shell32.lib");

void browse(string url)
void browse(const(char)[] url)
{
ShellExecuteW(null, "open", url.tempCStringW(), null, null, SW_SHOWNORMAL);
}
Expand All @@ -3707,7 +3707,7 @@ else version (OSX)
import core.stdc.string;
import core.sys.posix.unistd;

void browse(string url)
void browse(const(char)[] url)
{
const(char)*[5] args;

Expand Down Expand Up @@ -3743,7 +3743,7 @@ else version (Posix)
import core.stdc.string;
import core.sys.posix.unistd;

void browse(string url)
void browse(const(char)[] url)
{
const(char)*[3] args;

Expand Down

0 comments on commit e938528

Please sign in to comment.