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

Normalised all whitespace before args in std::function

This commit is contained in:
ed 2020-06-05 09:37:49 +01:00
parent 3283f2224a
commit d510b73cdf
62 changed files with 149 additions and 149 deletions

View file

@ -85,7 +85,7 @@ class TemplateComponent : public Component
{
public:
TemplateComponent (const NewProjectTemplates::ProjectTemplate& temp,
std::function<void(std::unique_ptr<Project>)>&& createdCallback)
std::function<void (std::unique_ptr<Project>)>&& createdCallback)
: projectTemplate (temp),
projectCreatedCallback (std::move (createdCallback)),
header (projectTemplate.displayName, projectTemplate.description, projectTemplate.icon)
@ -143,7 +143,7 @@ public:
private:
NewProjectTemplates::ProjectTemplate projectTemplate;
std::function<void(std::unique_ptr<Project>)> projectCreatedCallback;
std::function<void (std::unique_ptr<Project>)> projectCreatedCallback;
ItemHeader header;
TextButton createProjectButton { "Create Project..." };
@ -240,7 +240,7 @@ private:
class ExampleComponent : public Component
{
public:
ExampleComponent (const File& f, std::function<void(const File&)> selectedCallback)
ExampleComponent (const File& f, std::function<void (const File&)> selectedCallback)
: exampleFile (f),
metadata (parseJUCEHeaderMetadata (exampleFile)),
exampleSelectedCallback (std::move (selectedCallback)),
@ -290,7 +290,7 @@ private:
File exampleFile;
var metadata;
std::function<void(const File&)> exampleSelectedCallback;
std::function<void (const File&)> exampleSelectedCallback;
ItemHeader header;

View file

@ -57,7 +57,7 @@ static File findExampleFile (int dirIndex, int index)
return ProjucerApplication::getSortedExampleFilesInDirectory (dir)[index];
}
static std::unique_ptr<Component> createExampleProjectsTab (ContentComponent& content, std::function<void(const File&)> cb)
static std::unique_ptr<Component> createExampleProjectsTab (ContentComponent& content, std::function<void (const File&)> cb)
{
StringArray exampleCategories;
std::vector<StringArray> examples;
@ -120,7 +120,7 @@ static StringArray getAllTemplateNamesForCategory (const String& category)
}
static std::unique_ptr<Component> createProjectTemplatesTab (ContentComponent& content,
std::function<void(std::unique_ptr<Project>&&)>&& cb)
std::function<void (std::unique_ptr<Project>&&)>&& cb)
{
auto categories = getAllTemplateCategoryStrings();
@ -150,8 +150,8 @@ static std::unique_ptr<Component> createProjectTemplatesTab (ContentComponent& c
struct ProjectTemplatesAndExamples : public TabbedComponent
{
ProjectTemplatesAndExamples (ContentComponent& c,
std::function<void(std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void(const File&)>&& exampleCb)
std::function<void (std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void (const File&)>&& exampleCb)
: TabbedComponent (TabbedButtonBar::Orientation::TabsAtTop),
content (c),
exampleSelectedCallback (std::move (exampleCb))
@ -222,12 +222,12 @@ private:
};
ContentComponent& content;
std::function<void(const File&)> exampleSelectedCallback;
std::function<void (const File&)> exampleSelectedCallback;
};
//==============================================================================
StartPageComponent::StartPageComponent (std::function<void(std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void(const File&)>&& exampleCb)
StartPageComponent::StartPageComponent (std::function<void (std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void (const File&)>&& exampleCb)
: content (std::make_unique<ContentComponent>()),
tabs (std::make_unique<ProjectTemplatesAndExamples> (*content, std::move (newProjectCb), std::move (exampleCb)))
{

View file

@ -25,8 +25,8 @@ struct ProjectTemplatesAndExamples;
class StartPageComponent : public Component
{
public:
StartPageComponent (std::function<void(std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void(const File&)>&& exampleCb);
StartPageComponent (std::function<void (std::unique_ptr<Project>&&)>&& newProjectCb,
std::function<void (const File&)>&& exampleCb);
void paint (Graphics& g) override;
void resized() override;

View file

@ -25,7 +25,7 @@ public:
enum class Open { no, yes };
StartPageTreeHolder (const StringArray& headerNames, const std::vector<StringArray>& itemNames,
std::function<void(int, int)>&& selectedCallback, Open shouldBeOpen)
std::function<void (int, int)>&& selectedCallback, Open shouldBeOpen)
: headers (headerNames),
items (itemNames),
itemSelectedCallback (std::move (selectedCallback))
@ -160,7 +160,7 @@ private:
StringArray headers;
std::vector<StringArray> items;
std::function<void(int, int)> itemSelectedCallback;
std::function<void (int, int)> itemSelectedCallback;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StartPageTreeHolder)

View file

@ -24,7 +24,7 @@ class LicenseQueryThread : public Thread
{
public:
LicenseQueryThread (const String& userEmail, const String& userPassword,
std::function<void(LicenseState, String)>&& cb)
std::function<void (LicenseState, String)>&& cb)
: Thread ("LicenseQueryThread"),
email (userEmail),
password (userPassword),
@ -266,7 +266,7 @@ private:
//==============================================================================
const String email, password;
const std::function<void(LicenseState, String)> completionCallback;
const std::function<void (LicenseState, String)> completionCallback;
//==============================================================================
JUCE_DECLARE_WEAK_REFERENCEABLE (LicenseQueryThread)