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
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue