Mark a constructor for Windows as @safe

This commit is contained in:
Tomoya Tanjo 2013-08-13 18:58:20 +09:00
parent 163b828923
commit c45dab54c6

View file

@ -122,7 +122,7 @@ class FileException : Exception
version(Windows) this(in char[] name,
uint errno = .GetLastError(),
string file = __FILE__,
size_t line = __LINE__) @trusted
size_t line = __LINE__) @safe
{
this(name, sysErrorString(errno), file, line);
this.errno = errno;