mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +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
|
|
@ -37,7 +37,7 @@ void TreePanelBase::setRoot (JucerTreeViewBase* root)
|
|||
|
||||
if (project != nullptr)
|
||||
{
|
||||
const ScopedPointer<XmlElement> treeOpenness (project->getStoredProperties()
|
||||
const std::unique_ptr<XmlElement> treeOpenness (project->getStoredProperties()
|
||||
.getXmlValue (opennessStateKey));
|
||||
if (treeOpenness != nullptr)
|
||||
{
|
||||
|
|
@ -54,7 +54,7 @@ void TreePanelBase::saveOpenness()
|
|||
{
|
||||
if (project != nullptr)
|
||||
{
|
||||
ScopedPointer<XmlElement> opennessState (tree.getOpennessState (true));
|
||||
std::unique_ptr<XmlElement> opennessState (tree.getOpennessState (true));
|
||||
|
||||
if (opennessState != nullptr)
|
||||
project->getStoredProperties().setValue (opennessStateKey, opennessState.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue