mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Replaced all usage of ScopedPointer with std::unique_ptr
This commit is contained in:
parent
e6104e3fed
commit
ab863a6dc2
401 changed files with 1091 additions and 1113 deletions
|
|
@ -84,7 +84,7 @@ struct BackgroundLogo : public AnimatedContent
|
|||
</svg>
|
||||
)blahblah";
|
||||
|
||||
ScopedPointer<XmlElement> svg (XmlDocument::parse (logoData));
|
||||
std::unique_ptr<XmlElement> svg (XmlDocument::parse (logoData));
|
||||
logo.reset (Drawable::createFromSVG (*svg));
|
||||
}
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ struct BackgroundLogo : public AnimatedContent
|
|||
logo->drawWithin (g, canvas.getLimits().reduced (3.0f), RectanglePlacement (RectanglePlacement::centred), 0.6f);
|
||||
}
|
||||
|
||||
ScopedPointer<Drawable> logo;
|
||||
std::unique_ptr<Drawable> logo;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -348,7 +348,7 @@ private:
|
|||
updateCanvasInfo (currentCanvas);
|
||||
|
||||
{
|
||||
ScopedPointer<CanvasGeneratingContext> context (new CanvasGeneratingContext (currentCanvas));
|
||||
std::unique_ptr<CanvasGeneratingContext> context (new CanvasGeneratingContext (currentCanvas));
|
||||
Graphics g (*context);
|
||||
|
||||
if (content != nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue