mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Made a lot of ScopedPointer usage conform to the std::unique_ptr interface
This commit is contained in:
parent
2d9fc46b4e
commit
4229dc0a4f
99 changed files with 6809 additions and 498 deletions
|
|
@ -1819,7 +1819,7 @@ Array<var> Project::getDefaultRTASCategories() const noexcept
|
|||
EnabledModuleList& Project::getModules()
|
||||
{
|
||||
if (enabledModulesList == nullptr)
|
||||
enabledModulesList = new EnabledModuleList (*this, projectRoot.getOrCreateChildWithName (Ids::MODULES, nullptr));
|
||||
enabledModulesList.reset (new EnabledModuleList (*this, projectRoot.getOrCreateChildWithName (Ids::MODULES, nullptr)));
|
||||
|
||||
return *enabledModulesList;
|
||||
}
|
||||
|
|
@ -1923,7 +1923,7 @@ bool Project::ExporterIterator::next()
|
|||
if (++index >= project.getNumExporters())
|
||||
return false;
|
||||
|
||||
exporter = project.createExporter (index);
|
||||
exporter.reset (project.createExporter (index));
|
||||
|
||||
if (exporter == nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue