1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Standardised some lambda syntax

This commit is contained in:
jules 2018-01-08 10:28:41 +00:00
parent 5b32ef4897
commit 4fcedf7be5
53 changed files with 138 additions and 138 deletions

View file

@ -45,7 +45,7 @@ FilenameComponent::FilenameComponent (const String& name,
filenameBox.setEditableText (canEditFilename);
filenameBox.setTextWhenNothingSelected (textWhenNothingSelected);
filenameBox.setTextWhenNoChoicesAvailable (TRANS ("(no recently selected files)"));
filenameBox.onChange = [this]() { setCurrentFile (getCurrentFile(), true); };
filenameBox.onChange = [this] { setCurrentFile (getCurrentFile(), true); };
setBrowseButtonText ("...");
@ -90,7 +90,7 @@ void FilenameComponent::lookAndFeelChanged()
addAndMakeVisible (browseButton = getLookAndFeel().createFilenameComponentBrowseButton (browseButtonText));
browseButton->setConnectedEdges (Button::ConnectedOnLeft);
browseButton->onClick = [this]() { showChooser(); };
browseButton->onClick = [this] { showChooser(); };
resized();
}