mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Added some free functions to help make XML parsing less verbose: parseXML()
This commit is contained in:
parent
97c100b9c1
commit
768139a298
23 changed files with 116 additions and 94 deletions
|
|
@ -39,8 +39,10 @@ struct LogoComponent : public Component
|
|||
{
|
||||
LogoComponent()
|
||||
{
|
||||
std::unique_ptr<XmlElement> svg (XmlDocument::parse (BinaryData::background_logo_svg));
|
||||
logo.reset (Drawable::createFromSVG (*svg));
|
||||
if (auto svg = parseXML (BinaryData::background_logo_svg))
|
||||
logo.reset (Drawable::createFromSVG (*svg));
|
||||
else
|
||||
jassertfalse;
|
||||
}
|
||||
|
||||
void paint (Graphics& g) override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue