@@ -118,7 +118,7 @@ static BOOL MyFileExists(const std::string& path)
118118
119119#endif // defined(UNICODE)
120120
121- void FileLister::recursiveAddFiles (std::map<std::string, size_t > &files, const std::string &path)
121+ void FileLister::recursiveAddFiles (std::map<std::string, std:: size_t > &files, const std::string &path)
122122{
123123 // oss is the search string passed into FindFirst and FindNext.
124124 // bdir is the base directory which is used to form pathnames.
@@ -161,7 +161,7 @@ void FileLister::recursiveAddFiles(std::map<std::string, size_t> &files, const s
161161 continue ;
162162
163163#if defined(UNICODE)
164- size_t length = wcslen (ffd.cFileName );
164+ std:: size_t length = wcslen (ffd.cFileName );
165165 char * ansiFfd = new char [length + 1 ];
166166 TransformUcs2ToAnsi (ffd.cFileName , ansiFfd, length + 1 );
167167#else // defined(UNICODE)
@@ -182,7 +182,7 @@ void FileLister::recursiveAddFiles(std::map<std::string, size_t> &files, const s
182182 const std::string nativename = Path::fromNativeSeparators (fname.str ());
183183 // Limitation: file sizes are assumed to fit in a 'size_t'
184184#ifdef _WIN64
185- files[nativename] = (static_cast <size_t >(ffd.nFileSizeHigh ) << 32 ) | ffd.nFileSizeLow ;
185+ files[nativename] = (static_cast <std:: size_t >(ffd.nFileSizeHigh ) << 32 ) | ffd.nFileSizeLow ;
186186#else
187187 files[nativename] = ffd.nFileSizeLow ;
188188#endif
@@ -246,7 +246,7 @@ std::string FileLister::getAbsolutePath(const std::string& path)
246246}
247247
248248void FileLister::recursiveAddFiles2 (std::set<std::string> &seen_paths,
249- std::map<std::string, size_t > &files,
249+ std::map<std::string, std:: size_t > &files,
250250 const std::string &path)
251251{
252252 std::ostringstream oss;
@@ -279,7 +279,7 @@ void FileLister::recursiveAddFiles2(std::set<std::string> &seen_paths,
279279 struct stat sb;
280280 if (stat (absolute_path.c_str (), &sb) == 0 ) {
281281 // Limitation: file sizes are assumed to fit in a 'size_t'
282- files[filename] = static_cast <size_t >(sb.st_size );
282+ files[filename] = static_cast <std:: size_t >(sb.st_size );
283283 } else
284284 files[filename] = 0 ;
285285 }
@@ -294,7 +294,7 @@ void FileLister::recursiveAddFiles2(std::set<std::string> &seen_paths,
294294}
295295
296296
297- void FileLister::recursiveAddFiles (std::map<std::string, size_t > &files, const std::string &path)
297+ void FileLister::recursiveAddFiles (std::map<std::string, std:: size_t > &files, const std::string &path)
298298{
299299 std::set<std::string> seen_paths;
300300 recursiveAddFiles2 (seen_paths, files, path);
0 commit comments