mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added handy new function parseXMLIfTagMatches(), and refactored a lot of old code that was parsing XML in a more clunky way
This commit is contained in:
parent
3b36c3e198
commit
0fb8c8e82a
20 changed files with 130 additions and 148 deletions
|
|
@ -293,9 +293,7 @@ public:
|
|||
{
|
||||
// Restore our plug-in's state from the xml representation stored in the above
|
||||
// method.
|
||||
std::unique_ptr<XmlElement> xmlState (getXmlFromBinary (data, sizeInBytes));
|
||||
|
||||
if (xmlState.get() != nullptr)
|
||||
if (auto xmlState = getXmlFromBinary (data, sizeInBytes))
|
||||
state.replaceState (ValueTree::fromXml (*xmlState));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue