mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +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
|
|
@ -39,7 +39,7 @@ struct LogoComponent : public Component
|
|||
{
|
||||
LogoComponent()
|
||||
{
|
||||
ScopedPointer<XmlElement> svg (XmlDocument::parse (BinaryData::background_logo_svg));
|
||||
std::unique_ptr<XmlElement> svg (XmlDocument::parse (BinaryData::background_logo_svg));
|
||||
logo.reset (Drawable::createFromSVG (*svg));
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ struct LogoComponent : public Component
|
|||
+ ProjucerApplication::getApp().getVersionDescription();
|
||||
}
|
||||
|
||||
ScopedPointer<Drawable> logo;
|
||||
std::unique_ptr<Drawable> logo;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -302,7 +302,7 @@ void ProjectContentComponent::saveOpenDocumentList()
|
|||
{
|
||||
if (project != nullptr)
|
||||
{
|
||||
ScopedPointer<XmlElement> xml (recentDocumentList.createXML());
|
||||
std::unique_ptr<XmlElement> xml (recentDocumentList.createXML());
|
||||
|
||||
if (xml != nullptr)
|
||||
project->getStoredProperties().setValue ("lastDocs", xml.get());
|
||||
|
|
@ -313,7 +313,7 @@ void ProjectContentComponent::reloadLastOpenDocuments()
|
|||
{
|
||||
if (project != nullptr)
|
||||
{
|
||||
ScopedPointer<XmlElement> xml (project->getStoredProperties().getXmlValue ("lastDocs"));
|
||||
std::unique_ptr<XmlElement> xml (project->getStoredProperties().getXmlValue ("lastDocs"));
|
||||
|
||||
if (xml != nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue