Browse Source

[trivial] Make namespace explicit for is_regular_file

is_regular_file resolves using argument dependent lookup. Make the
namespace explicit so it's obvious where the function is defined.
0.16
John Newbery 7 years ago
parent
commit
f4c4e38884
  1. 2
      src/init.cpp

2
src/init.cpp

@ -588,7 +588,7 @@ void CleanupBlockRevFiles() @@ -588,7 +588,7 @@ void CleanupBlockRevFiles()
LogPrintf("Removing unusable blk?????.dat and rev?????.dat files for -reindex with -prune\n");
fs::path blocksdir = GetDataDir() / "blocks";
for (fs::directory_iterator it(blocksdir); it != fs::directory_iterator(); it++) {
if (is_regular_file(*it) &&
if (fs::is_regular_file(*it) &&
it->path().filename().string().length() == 12 &&
it->path().filename().string().substr(8,4) == ".dat")
{

Loading…
Cancel
Save