mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
Added an alternative version of File::findChildFiles that returns the results array rather than it being an out-parameter. In almost all cases using this new version will make your code smaller and cleaner, as you can see from all the changes in this commit!
This commit is contained in:
parent
7912349b55
commit
415f0e4c90
15 changed files with 75 additions and 116 deletions
|
|
@ -146,11 +146,10 @@ int main (int argc, char* argv[])
|
|||
<< " from files in " << sourceDirectory.getFullPathName()
|
||||
<< "..." << std::endl << std::endl;
|
||||
|
||||
Array<File> files;
|
||||
sourceDirectory.findChildFiles (files, File::findFiles, true,
|
||||
(argc > 4) ? argv[4] : "*");
|
||||
auto files = sourceDirectory.findChildFiles (File::findFiles, true,
|
||||
(argc > 4) ? argv[4] : "*");
|
||||
|
||||
if (files.size() == 0)
|
||||
if (files.isEmpty())
|
||||
{
|
||||
std::cout << "Didn't find any source files in: "
|
||||
<< sourceDirectory.getFullPathName() << std::endl << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue