mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Added a couple of handy methods XmlDocument::parse().
This commit is contained in:
parent
59ac5a6d25
commit
030489f086
12 changed files with 136 additions and 179 deletions
|
|
@ -460,9 +460,7 @@ const String TableHeaderComponent::toString() const
|
|||
|
||||
void TableHeaderComponent::restoreFromString (const String& storedVersion)
|
||||
{
|
||||
XmlDocument doc (storedVersion);
|
||||
ScopedPointer <XmlElement> storedXml (doc.getDocumentElement());
|
||||
|
||||
ScopedPointer <XmlElement> storedXml (XmlDocument::parse (storedVersion));
|
||||
int index = 0;
|
||||
|
||||
if (storedXml != 0 && storedXml->hasTagName ("TABLELAYOUT"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue