mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
A few C++11 modernisations and comment corrections
This commit is contained in:
parent
e253b8bea1
commit
44cd80969d
25 changed files with 43 additions and 45 deletions
|
|
@ -456,14 +456,12 @@ namespace
|
|||
{
|
||||
File result;
|
||||
|
||||
for (int i = 0; i < allFiles.size(); ++i)
|
||||
for (auto& f : allFiles)
|
||||
{
|
||||
const File& f = allFiles.getReference(i);
|
||||
|
||||
if (f.getFileName().equalsIgnoreCase (name) && f != sourceFile)
|
||||
{
|
||||
if (result.exists())
|
||||
return File(); // multiple possible results, so don't change it!
|
||||
return {}; // multiple possible results, so don't change it!
|
||||
|
||||
result = f;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue