1
0
Fork 0
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:
Tom Poole 2018-04-19 15:55:04 +01:00
parent e6104e3fed
commit ab863a6dc2
401 changed files with 1091 additions and 1113 deletions

View file

@ -79,7 +79,7 @@ struct ReportingThreadContainer : public ChangeListener,
void sendReport (String, String&, StringPairArray&);
void changeListenerCallback (ChangeBroadcaster*) override;
ScopedPointer<ReportingThread> reportingThread;
std::unique_ptr<ReportingThread> reportingThread;
JUCE_DECLARE_SINGLETON_SINGLETHREADED_MINIMAL (ReportingThreadContainer)
};
@ -132,7 +132,7 @@ private:
ReportingThreadContainer& threadContainer;
URL url;
String headers;
ScopedPointer<WebInputStream> webStream;
std::unique_ptr<WebInputStream> webStream;
};
//==============================================================================
@ -294,7 +294,7 @@ Drawable* JUCESplashScreen::getSplashScreenLogo()
</svg>
)JUCESPLASHSCREEN";
ScopedPointer<XmlElement> svgXml (XmlDocument::parse (svgData));
std::unique_ptr<XmlElement> svgXml (XmlDocument::parse (svgData));
return Drawable::createFromSVG (*svgXml);
}

View file

@ -65,7 +65,7 @@ private:
bool hitTest (int, int) override;
void mouseUp (const MouseEvent&) override;
ScopedPointer<Drawable> content;
std::unique_ptr<Drawable> content;
CriticalSection appUsageReporting;
ComponentAnimator fader;
bool hasStartedFading = false;