1
0
Fork 0
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:
jules 2017-03-28 12:31:51 +01:00
parent e253b8bea1
commit 44cd80969d
25 changed files with 43 additions and 45 deletions

View file

@ -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;
}