1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +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

@ -597,11 +597,11 @@ Project* MainWindowList::getFrontmostProject()
File findDefaultModulesFolder (bool mustContainJuceCoreModule)
{
const MainWindowList& windows = ProjucerApplication::getApp().mainWindowList;
auto& windows = ProjucerApplication::getApp().mainWindowList;
for (int i = windows.windows.size(); --i >= 0;)
{
if (Project* p = windows.windows.getUnchecked (i)->getProject())
if (auto* p = windows.windows.getUnchecked (i)->getProject())
{
const File f (EnabledModuleList::findDefaultModulesFolder (*p));
@ -613,11 +613,11 @@ File findDefaultModulesFolder (bool mustContainJuceCoreModule)
if (mustContainJuceCoreModule)
return findDefaultModulesFolder (false);
File f (File::getSpecialLocation (File::currentApplicationFile));
auto f = File::getSpecialLocation (File::currentApplicationFile);
for (;;)
{
File parent (f.getParentDirectory());
auto parent = f.getParentDirectory();
if (parent == f || ! parent.isDirectory())
break;
@ -628,5 +628,5 @@ File findDefaultModulesFolder (bool mustContainJuceCoreModule)
f = parent;
}
return File();
return {};
}