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:
parent
c76b7b63e1
commit
6fb9b9ce4e
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue