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

@ -60,7 +60,7 @@ MainWindow::MainWindow()
{
commandManager.getKeyMappings()->resetToDefaultMappings();
ScopedPointer<XmlElement> keys (getGlobalProperties().getXmlValue ("keyMappings"));
std::unique_ptr<XmlElement> keys (getGlobalProperties().getXmlValue ("keyMappings"));
if (keys != nullptr)
commandManager.getKeyMappings()->restoreFromXml (*keys);
@ -234,7 +234,7 @@ bool MainWindow::openFile (const File& file)
if (file.hasFileExtension (Project::projectFileExtension))
{
ScopedPointer<Project> newDoc (new Project (file));
std::unique_ptr<Project> newDoc (new Project (file));
auto result = newDoc->loadFrom (file, true);