mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +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
|
|
@ -173,9 +173,9 @@ void ToolbarItemComponent::paintButton (Graphics& g, const bool over, const bool
|
|||
|
||||
if (toolbarStyle != Toolbar::iconsOnly)
|
||||
{
|
||||
const int indent = contentArea.getX();
|
||||
int y = indent;
|
||||
int h = getHeight() - indent * 2;
|
||||
auto indent = contentArea.getX();
|
||||
auto y = indent;
|
||||
auto h = getHeight() - indent * 2;
|
||||
|
||||
if (toolbarStyle == Toolbar::iconsWithText)
|
||||
{
|
||||
|
|
@ -212,7 +212,7 @@ void ToolbarItemComponent::resized()
|
|||
}
|
||||
else
|
||||
{
|
||||
contentArea = Rectangle<int>();
|
||||
contentArea = {};
|
||||
}
|
||||
|
||||
contentAreaChanged (contentArea);
|
||||
|
|
@ -231,7 +231,8 @@ void ToolbarItemComponent::setEditingMode (const ToolbarEditingMode newMode)
|
|||
}
|
||||
else if (overlayComp == nullptr)
|
||||
{
|
||||
addAndMakeVisible (overlayComp = new ItemDragAndDropOverlayComponent());
|
||||
overlayComp.reset (new ItemDragAndDropOverlayComponent());
|
||||
addAndMakeVisible (overlayComp.get());
|
||||
overlayComp->parentSizeChanged();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue