summaryrefslogtreecommitdiffstats
path: root/lib/util/domutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/domutil.cpp')
-rw-r--r--lib/util/domutil.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/util/domutil.cpp b/lib/util/domutil.cpp
index 9f5d40c9..a8f036e6 100644
--- a/lib/util/domutil.cpp
+++ b/lib/util/domutil.cpp
@@ -57,7 +57,7 @@ TQString DomUtil::readEntryAux(const TQDomDocument &doc, const TQString &path)
{
TQDomElement el = elementByPath(doc, path);
if (el.isNull())
- return TQString::null;
+ return TQString();
else
return el.firstChild().toText().data();
}
@@ -260,18 +260,18 @@ TQDomElement DomUtil::elementByPathExt(TQDomDocument &doc, const TQString &paths
{
DomPath dompath = resolvPathStringExt(pathstring);
TQDomElement elem = doc.documentElement();
- TQDomNodeList children;
+ TQDomNodeList tqchildren;
TQDomElement nextElem = elem;
for (unsigned int j=0; j<dompath.count(); j++)
{
- children = nextElem.childNodes();
+ tqchildren = nextElem.childNodes();
DomPathElement dompathelement= dompath[j];
bool wrongchild = false;
int matchCount = 0;
- for (unsigned int i=0; i<children.count(); i++)
+ for (unsigned int i=0; i<tqchildren.count(); i++)
{
wrongchild = false;
- TQDomElement child = children.item(i).toElement();
+ TQDomElement child = tqchildren.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 children = elem.childNodes();
- for (unsigned int i=0;i<children.count();i++)
- if (children.item(i).isText())
- elem.removeChild(children.item(i));
+ TQDomNodeList tqchildren = elem.childNodes();
+ for (unsigned int i=0;i<tqchildren.count();i++)
+ if (tqchildren.item(i).isText())
+ elem.removeChild(tqchildren.item(i));
return true;
}