1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DirectoryIterator optimisation.

This commit is contained in:
jules 2013-01-08 12:43:37 +00:00
parent c76b7b63e1
commit 6fb9b9ce4e

View file

@ -64,9 +64,11 @@ bool DirectoryIterator::next (bool* const isDirResult, bool* const isHiddenResul
}
String filename;
bool isDirectory, isHidden;
bool isDirectory, isHidden = false;
while (fileFinder.next (filename, &isDirectory, &isHidden, fileSize, modTime, creationTime, isReadOnly))
while (fileFinder.next (filename, &isDirectory,
(isHiddenResult != nullptr || (whatToLookFor & File::ignoreHiddenFiles) != 0) ? &isHidden : nullptr,
fileSize, modTime, creationTime, isReadOnly))
{
++index;