mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Made a lot of ScopedPointer usage conform to the std::unique_ptr interface
This commit is contained in:
parent
2d9fc46b4e
commit
4229dc0a4f
99 changed files with 6809 additions and 498 deletions
|
|
@ -243,7 +243,7 @@ private:
|
|||
//==============================================================================
|
||||
MainComponent::MainComponent()
|
||||
{
|
||||
contentComponent = new DemoContentComponent (*this, [this] (bool isHeavyweight)
|
||||
contentComponent.reset (new DemoContentComponent (*this, [this] (bool isHeavyweight)
|
||||
{
|
||||
#if (JUCE_ANDROID || JUCE_IOS)
|
||||
demosPanel.showOrHide (false);
|
||||
|
|
@ -260,12 +260,12 @@ MainComponent::MainComponent()
|
|||
|
||||
isShowingHeavyweightDemo = isHeavyweight;
|
||||
resized();
|
||||
});
|
||||
}));
|
||||
|
||||
demosPanel.setContent (new DemoList (*contentComponent));
|
||||
demosPanel.setTitleBarComponent (new SidePanelHeader (*this), true);
|
||||
|
||||
addAndMakeVisible (contentComponent);
|
||||
addAndMakeVisible (contentComponent.get());
|
||||
addAndMakeVisible (showDemosButton);
|
||||
addAndMakeVisible (demosPanel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue