mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix some compiler warnings
This commit is contained in:
parent
0f307122d9
commit
82f1fd57a4
23 changed files with 88 additions and 101 deletions
|
|
@ -412,6 +412,7 @@ public:
|
|||
readerSource->setLooping (loopState.getValue());
|
||||
|
||||
init();
|
||||
resized();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -461,7 +462,15 @@ public:
|
|||
|
||||
audioSourcePlayer.setSource (currentDemo.get());
|
||||
|
||||
initParameters();
|
||||
auto& parameters = currentDemo->getParameters();
|
||||
|
||||
parametersComponent.reset();
|
||||
|
||||
if (! parameters.empty())
|
||||
{
|
||||
parametersComponent = std::make_unique<DemoParametersComponent> (parameters);
|
||||
addAndMakeVisible (parametersComponent.get());
|
||||
}
|
||||
}
|
||||
|
||||
void play()
|
||||
|
|
@ -485,21 +494,6 @@ public:
|
|||
|
||||
AudioThumbnailComponent& getThumbnailComponent() { return header.thumbnailComp; }
|
||||
|
||||
void initParameters()
|
||||
{
|
||||
auto& parameters = currentDemo->getParameters();
|
||||
|
||||
parametersComponent.reset();
|
||||
|
||||
if (parameters.size() > 0)
|
||||
{
|
||||
parametersComponent.reset (new DemoParametersComponent (parameters));
|
||||
addAndMakeVisible (parametersComponent.get());
|
||||
}
|
||||
|
||||
resized();
|
||||
}
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
class AudioPlayerHeader : public Component,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue