Skip to content

Commit

Permalink
Merge pull request #6 from s-ludwig/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
FreeSlave authored Jun 10, 2022
2 parents 78f8e9a + 317e6df commit 3c031c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/trashcan.d
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private:
in {
assert(topdir.length);
}
body {
do {
string trashDir = buildPath(topdir, ".Trash");
stat_t trashStat;
enforce(lstat(trashDir.toStringz, &trashStat) == 0, "Top trash directory does not exist");
Expand Down Expand Up @@ -666,7 +666,7 @@ version(Windows) private
in {
assert(folder);
}
body {
do {
enforce(pidl !is null, "Empty trashcan item, can't run a delete operation");
IShellItem item = CreateShellItem(folder, pidl);
scope(exit) item.Release();
Expand All @@ -683,7 +683,7 @@ version(Windows) private
in {
assert(folder);
}
body {
do {
enforce(pidl !is null, "Empty trashcan item, can't run a restore operation");

import std.utf;
Expand Down

0 comments on commit 3c031c5

Please sign in to comment.