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
|
|
@ -995,7 +995,7 @@ ValueTree ValueTree::fromXml (const XmlElement& xml)
|
|||
|
||||
String ValueTree::toXmlString() const
|
||||
{
|
||||
ScopedPointer<XmlElement> xml (createXml());
|
||||
std::unique_ptr<XmlElement> xml (createXml());
|
||||
|
||||
if (xml != nullptr)
|
||||
return xml->createDocument ({});
|
||||
|
|
@ -1155,8 +1155,8 @@ public:
|
|||
}
|
||||
expect (v1.isEquivalentTo (ValueTree::readFromGZIPData (zipped.getData(), zipped.getDataSize())));
|
||||
|
||||
ScopedPointer<XmlElement> xml1 (v1.createXml());
|
||||
ScopedPointer<XmlElement> xml2 (v2.createCopy().createXml());
|
||||
std::unique_ptr<XmlElement> xml1 (v1.createXml());
|
||||
std::unique_ptr<XmlElement> xml2 (v2.createCopy().createXml());
|
||||
expect (xml1->isEquivalentTo (xml2.get(), false));
|
||||
|
||||
auto v4 = v2.createCopy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue