File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3610,7 +3610,7 @@ version (StdDdoc)
36103610 Throws:
36113611 $(LREF FileException) if the file does not exist.
36123612 +/
3613- this (string path);
3613+ this (return scope string path);
36143614
36153615 version (Windows )
36163616 {
@@ -3772,7 +3772,7 @@ else version (Windows)
37723772 public :
37733773 alias name this ;
37743774
3775- this (string path)
3775+ this (return scope string path)
37763776 {
37773777 import std.datetime.systime : FILETIMEToSysTime;
37783778
@@ -3881,7 +3881,7 @@ else version (Posix)
38813881 public :
38823882 alias name this ;
38833883
3884- this (string path)
3884+ this (return scope string path)
38853885 {
38863886 if (! path.exists)
38873887 throw new FileException (path, " File does not exist" );
@@ -4424,7 +4424,7 @@ void rmdirRecurse(scope const(char)[] pathname) @safe
44244424}
44254425
44264426// / ditto
4427- void rmdirRecurse (ref DirEntry de) @safe
4427+ void rmdirRecurse (ref scope DirEntry de) @safe
44284428{
44294429 if (! de.isDir)
44304430 throw new FileException (de.name, " Not a directory" );
@@ -4459,7 +4459,7 @@ void rmdirRecurse(ref DirEntry de) @safe
44594459// "rmdirRecurse(in char[] pathname)" implementation. That is needlessly
44604460// expensive.
44614461// A DirEntry is a bit big (72B), so keeping the "by ref" signature is desirable.
4462- void rmdirRecurse (DirEntry de) @safe
4462+ void rmdirRecurse (scope DirEntry de) @safe
44634463{
44644464 rmdirRecurse(de);
44654465}
You can’t perform that action at this time.
0 commit comments