Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
rename reset to Dtor for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Jan 20, 2015
1 parent 4d10b01 commit 84cc713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gc/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ struct Gcx
pool.Dtor();
cstdlib.free(pool);
}
pooltable.reset();
pooltable.Dtor();

roots.removeAll();
ranges.removeAll();
Expand Down
4 changes: 2 additions & 2 deletions src/gc/pooltable.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct PoolTable(Pool)
import core.stdc.string : memmove;

nothrow:
void reset()
void Dtor()
{
cstdlib.free(pools);
pools = null;
Expand Down Expand Up @@ -282,5 +282,5 @@ unittest
freed = pooltable.minimize();
assert(freed.length == NPOOLS - 3);
assert(pooltable.length == 0);
pooltable.reset();
pooltable.Dtor();
}

0 comments on commit 84cc713

Please sign in to comment.