mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04: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
|
|
@ -555,8 +555,7 @@ String LibraryModule::CompileUnit::getFilenameForProxyFile() const
|
|||
|
||||
Array<LibraryModule::CompileUnit> LibraryModule::getAllCompileUnits (ProjectType::Target::Type forTarget) const
|
||||
{
|
||||
Array<File> files;
|
||||
getFolder().findChildFiles (files, File::findFiles, false);
|
||||
auto files = getFolder().findChildFiles (File::findFiles, false);
|
||||
|
||||
FileSorter sorter;
|
||||
files.sort (sorter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue