mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Make StdioException.opCall @safe
This commit is contained in:
parent
a5912ca262
commit
cf131b797d
1 changed files with 2 additions and 2 deletions
|
@ -5167,13 +5167,13 @@ Initialize with a message and an error code.
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Convenience functions that throw an `StdioException`. */
|
/** Convenience functions that throw an `StdioException`. */
|
||||||
static void opCall(string msg)
|
static void opCall(string msg) @safe
|
||||||
{
|
{
|
||||||
throw new StdioException(msg);
|
throw new StdioException(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ditto
|
/// ditto
|
||||||
static void opCall()
|
static void opCall() @safe
|
||||||
{
|
{
|
||||||
throw new StdioException(null, core.stdc.errno.errno);
|
throw new StdioException(null, core.stdc.errno.errno);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue