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
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue