Skip to content

Commit 3c031c5

Browse files
authored
Merge pull request #6 from s-ludwig/patch-1
Fix deprecation warnings
2 parents 78f8e9a + 317e6df commit 3c031c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/trashcan.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private:
131131
in {
132132
assert(topdir.length);
133133
}
134-
body {
134+
do {
135135
string trashDir = buildPath(topdir, ".Trash");
136136
stat_t trashStat;
137137
enforce(lstat(trashDir.toStringz, &trashStat) == 0, "Top trash directory does not exist");
@@ -666,7 +666,7 @@ version(Windows) private
666666
in {
667667
assert(folder);
668668
}
669-
body {
669+
do {
670670
enforce(pidl !is null, "Empty trashcan item, can't run a delete operation");
671671
IShellItem item = CreateShellItem(folder, pidl);
672672
scope(exit) item.Release();
@@ -683,7 +683,7 @@ version(Windows) private
683683
in {
684684
assert(folder);
685685
}
686-
body {
686+
do {
687687
enforce(pidl !is null, "Empty trashcan item, can't run a restore operation");
688688

689689
import std.utf;

0 commit comments

Comments
 (0)