From f6f86d38c09e7caa2e386ce132a63960480ea48b Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 15 Jun 2014 16:00:13 -0700 Subject: s/hFind/find_handle/ --- src/disk_interface.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/disk_interface.cc b/src/disk_interface.cc index 6437761..50a2d97 100644 --- a/src/disk_interface.cc +++ b/src/disk_interface.cc @@ -86,10 +86,10 @@ bool StatAllFilesInDir(const string& dir, map* stamps, bool quiet) { // FindExInfoBasic is 30% faster than FindExInfoStandard. WIN32_FIND_DATAA ffd; - HANDLE hFind = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic, &ffd, - FindExSearchNameMatch, NULL, 0); + HANDLE find_handle = FindFirstFileExA((dir + "\\*").c_str(), FindExInfoBasic, + &ffd, FindExSearchNameMatch, NULL, 0); - if (hFind == INVALID_HANDLE_VALUE) { + if (find_handle == INVALID_HANDLE_VALUE) { DWORD err = GetLastError(); if (err == ERROR_FILE_NOT_FOUND || err == ERROR_PATH_NOT_FOUND) return true; @@ -106,8 +106,8 @@ bool StatAllFilesInDir(const string& dir, map* stamps, transform(lowername.begin(), lowername.end(), lowername.begin(), ::tolower); stamps->insert(make_pair(lowername, TimeStampFromFileTime(ffd.ftLastWriteTime))); - } while (FindNextFileA(hFind, &ffd)); - FindClose(hFind); + } while (FindNextFileA(find_handle, &ffd)); + FindClose(find_handle); return true; } #endif // _WIN32 -- cgit v0.12