summaryrefslogtreecommitdiffstats
path: root/src/xml_to_data
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml_to_data')
-rw-r--r--src/xml_to_data/xml_to_data.cpp4
-rw-r--r--src/xml_to_data/xml_to_data.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/xml_to_data/xml_to_data.cpp b/src/xml_to_data/xml_to_data.cpp
index 39eba60..8e14d81 100644
--- a/src/xml_to_data/xml_to_data.cpp
+++ b/src/xml_to_data/xml_to_data.cpp
@@ -11,11 +11,11 @@
#include <tqfile.h>
#include <tqtextstream.h>
-TQDomElement XmlToData::findUniqueElement(TQDomElement tqparent, const TQString &tag,
+TQDomElement XmlToData::findUniqueElement(TQDomElement parent, const TQString &tag,
const TQString &attribute, const TQString &value) const
{
TQDomElement element;
- TQDomNode child = tqparent.firstChild();
+ TQDomNode child = parent.firstChild();
while ( !child.isNull() ) {
if ( child.nodeName()==tag && child.isElement()
&& (attribute.isEmpty() || child.toElement().attribute(attribute)==value) ) {
diff --git a/src/xml_to_data/xml_to_data.h b/src/xml_to_data/xml_to_data.h
index 5ba4290..5630f1b 100644
--- a/src/xml_to_data/xml_to_data.h
+++ b/src/xml_to_data/xml_to_data.h
@@ -26,7 +26,7 @@ protected:
virtual TQString currentDevice() const = 0;
virtual void warning(const TQString &message) const;
virtual void qFatal(const TQString &message) const;
- TQDomElement findUniqueElement(TQDomElement tqparent, const TQString &nodeName,
+ TQDomElement findUniqueElement(TQDomElement parent, const TQString &nodeName,
const TQString &attribute, const TQString &value) const;
void checkTagNames(TQDomElement element, const TQString &tag, const TQStringList &names) const;
TQDomDocument parseFile(const TQString &filename) const;