diff --git a/sources/ElementsCollection/xmlelementcollection.cpp b/sources/ElementsCollection/xmlelementcollection.cpp index d6e3319bf..b124b72ff 100644 --- a/sources/ElementsCollection/xmlelementcollection.cpp +++ b/sources/ElementsCollection/xmlelementcollection.cpp @@ -186,23 +186,22 @@ QDomElement XmlElementCollection::child(const QDomElement &parent_element, if (parent_element.ownerDocument() != m_dom_document) return QDomElement(); - //Get all childs element of parent_element - QDomNodeList child_list = parent_element.childNodes(); - QString tag_name(child_name.endsWith(".elmt")? "element" : "category"); - QList found_dom_element; - for (int i=0 ; i