diff options
Diffstat (limited to 'lib/util/domutil.cpp')
-rw-r--r-- | lib/util/domutil.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/util/domutil.cpp b/lib/util/domutil.cpp index a8f036e6..43f8d95a 100644 --- a/lib/util/domutil.cpp +++ b/lib/util/domutil.cpp @@ -260,18 +260,18 @@ TQDomElement DomUtil::elementByPathExt(TQDomDocument &doc, const TQString &paths { DomPath dompath = resolvPathStringExt(pathstring); TQDomElement elem = doc.documentElement(); - TQDomNodeList tqchildren; + TQDomNodeList children; TQDomElement nextElem = elem; for (unsigned int j=0; j<dompath.count(); j++) { - tqchildren = nextElem.childNodes(); + children = nextElem.childNodes(); DomPathElement dompathelement= dompath[j]; bool wrongchild = false; int matchCount = 0; - for (unsigned int i=0; i<tqchildren.count(); i++) + for (unsigned int i=0; i<children.count(); i++) { wrongchild = false; - TQDomElement child = tqchildren.item(i).toElement(); + TQDomElement child = children.item(i).toElement(); TQString tag = child.tagName(); tag = dompathelement.tagName; if (child.tagName() == dompathelement.tagName) @@ -339,10 +339,10 @@ bool DomUtil::removeTextNodes(TQDomDocument doc,TQString pathExt) TQDomElement elem = elementByPathExt(doc,pathExt); if (elem.isNull()) return false; - TQDomNodeList tqchildren = elem.childNodes(); - for (unsigned int i=0;i<tqchildren.count();i++) - if (tqchildren.item(i).isText()) - elem.removeChild(tqchildren.item(i)); + TQDomNodeList children = elem.childNodes(); + for (unsigned int i=0;i<children.count();i++) + if (children.item(i).isText()) + elem.removeChild(children.item(i)); return true; } |