From f4c4e388843a9cf5fd4a289b1d6bce8eab6b2ce6 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Fri, 13 Oct 2017 17:23:52 -0400 Subject: [PATCH] [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. --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 539adc23d..9aac64ec0 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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") {