diff options
| author | John Newbery <[email protected]> | 2017-10-13 17:23:52 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-10-13 17:23:52 -0400 |
| commit | f4c4e388843a9cf5fd4a289b1d6bce8eab6b2ce6 (patch) | |
| tree | d39792c8c22085709841a96e7d171e3abfc56d9f /src/init.cpp | |
| parent | Merge #10099: Slightly Improve Unit Tests for Checkqueue (diff) | |
| download | discoin-f4c4e388843a9cf5fd4a289b1d6bce8eab6b2ce6.tar.xz discoin-f4c4e388843a9cf5fd4a289b1d6bce8eab6b2ce6.zip | |
[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.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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") { |