mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Another batch of ScopedPointer cleanups
This commit is contained in:
parent
5b13063162
commit
48a5fbd333
74 changed files with 311 additions and 292 deletions
|
|
@ -1008,8 +1008,11 @@ void TreeView::showDragHighlight (const InsertPoint& insertPos) noexcept
|
|||
|
||||
if (dragInsertPointHighlight == nullptr)
|
||||
{
|
||||
addAndMakeVisible (dragInsertPointHighlight = new InsertPointHighlight());
|
||||
addAndMakeVisible (dragTargetGroupHighlight = new TargetGroupHighlight());
|
||||
dragInsertPointHighlight.reset (new InsertPointHighlight());
|
||||
dragTargetGroupHighlight.reset (new TargetGroupHighlight());
|
||||
|
||||
addAndMakeVisible (dragInsertPointHighlight.get());
|
||||
addAndMakeVisible (dragTargetGroupHighlight.get());
|
||||
}
|
||||
|
||||
dragInsertPointHighlight->setTargetPosition (insertPos, viewport->getViewWidth());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue