mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
More ScopedPointer/unique_ptr compatibility work
This commit is contained in:
parent
48a5fbd333
commit
1a60fa9765
80 changed files with 404 additions and 368 deletions
|
|
@ -982,7 +982,9 @@ ValueTree ValueTree::fromXml (const XmlElement& xml)
|
|||
|
||||
String ValueTree::toXmlString() const
|
||||
{
|
||||
if (ScopedPointer<XmlElement> xml = createXml())
|
||||
ScopedPointer<XmlElement> xml (createXml());
|
||||
|
||||
if (xml != nullptr)
|
||||
return xml->createDocument ({});
|
||||
|
||||
return {};
|
||||
|
|
@ -1142,7 +1144,7 @@ public:
|
|||
|
||||
ScopedPointer<XmlElement> xml1 (v1.createXml());
|
||||
ScopedPointer<XmlElement> xml2 (v2.createCopy().createXml());
|
||||
expect (xml1->isEquivalentTo (xml2, false));
|
||||
expect (xml1->isEquivalentTo (xml2.get(), false));
|
||||
|
||||
auto v4 = v2.createCopy();
|
||||
expect (v1.isEquivalentTo (v4));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue