Changeset 269 in flair-src for trunk/tools/FlairGCS/src/ConnectionLayout.cpp
- Timestamp:
- 10/04/18 13:53:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/ConnectionLayout.cpp
r260 r269 38 38 } 39 39 40 ParseXml(doc.firstChildElement("root").firstChildElement()); 40 QDomElement dom=doc.firstChildElement("root").firstChildElement(); 41 ParseXml(&dom); 41 42 break; 42 43 } … … 83 84 } 84 85 85 void ConnectionLayout::LoadXml(QDomDocument to_parse) {86 QDomElement tmp = to_parse .firstChildElement("root");86 void ConnectionLayout::LoadXml(QDomDocument *to_parse) { 87 QDomElement tmp = to_parse->firstChildElement("root"); 87 88 while (tmp.attribute("name") != name && !tmp.isNull()) 88 tmp = to_parse .nextSiblingElement("root");89 tmp = to_parse->nextSiblingElement("root"); 89 90 90 91 if (!tmp.isNull()) { 91 XmlWidget::LoadXml( tmp);92 XmlWidget::LoadXml(&tmp); 92 93 } else { 93 94 fprintf(stderr,"%s not found in xml file \n", name.toLocal8Bit().constData());
Note:
See TracChangeset
for help on using the changeset viewer.