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

@ -282,10 +282,10 @@ void FileTreeComponent::refresh()
//==============================================================================
File FileTreeComponent::getSelectedFile (const int index) const
{
if (const FileListTreeItem* const item = dynamic_cast<const FileListTreeItem*> (getSelectedItem (index)))
if (auto* item = dynamic_cast<const FileListTreeItem*> (getSelectedItem (index)))
return item->file;
return File();
return {};
}
void FileTreeComponent::deselectAllFiles()