mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More ScopedPointer/unique_ptr compatibility work
This commit is contained in:
parent
48a5fbd333
commit
1a60fa9765
80 changed files with 404 additions and 368 deletions
|
|
@ -440,7 +440,7 @@ TreeView::TreeView (const String& name)
|
|||
: Component (name),
|
||||
viewport (new TreeViewport())
|
||||
{
|
||||
addAndMakeVisible (viewport);
|
||||
addAndMakeVisible (viewport.get());
|
||||
viewport->setViewedComponent (new ContentComponent (*this));
|
||||
setWantsKeyboardFocus (true);
|
||||
}
|
||||
|
|
@ -547,7 +547,7 @@ void TreeView::setOpenCloseButtonsVisible (const bool shouldBeVisible)
|
|||
|
||||
Viewport* TreeView::getViewport() const noexcept
|
||||
{
|
||||
return viewport;
|
||||
return viewport.get();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue