From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/xml/dom_elementimpl.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'khtml/xml/dom_elementimpl.cpp') diff --git a/khtml/xml/dom_elementimpl.cpp b/khtml/xml/dom_elementimpl.cpp index c41bef3dc..21401e106 100644 --- a/khtml/xml/dom_elementimpl.cpp +++ b/khtml/xml/dom_elementimpl.cpp @@ -855,7 +855,7 @@ DOMString ElementImpl::toString() const for (NodeImpl *child = firstChild(); child != NULL; child = child->nextSibling()) { DOMString kid = child->toString(); - result += TQConstString(kid.unicode(), kid.length()).string(); + result += TQConstString(kid.tqunicode(), kid.length()).string(); } result += "ownerElement() == m_element) { // Already have this attribute. - // DOMTS core-1 test "hc_elementreplaceattributewithself" says we should return it. + // DOMTS core-1 test "hc_elementtqreplaceattributewithself" says we should return it. return attr; } - unsigned int mask = nsAware ? ~0L : NodeImpl_IdLocalMask; - NodeImpl::Id id = (attr->id() & mask); + unsigned int tqmask = nsAware ? ~0L : NodeImpl_IdLocalMask; + NodeImpl::Id id = (attr->id() & tqmask); for (unsigned long i = 0; i < m_attrCount; i++) { - if ((m_attrs[i].id() & mask) == id) { + if ((m_attrs[i].id() & tqmask) == id) { // if we are called with a qualified name, filter out NS-aware elements with non-matching name. if (qName && (namespacePart(m_attrs[i].id()) != defaultNamespace) && strcasecmp(m_attrs[i].name(), DOMString(qName))) continue; - // Attribute exists; replace it + // Attribute exists; tqreplace it if (id == ATTR_ID) m_element->updateId(m_attrs[i].val(), attr->val()); - Node replaced = m_attrs[i].createAttr(m_element,m_element->docPtr()); + Node tqreplaced = m_attrs[i].createAttr(m_element,m_element->docPtr()); m_attrs[i].free(); m_attrs[i].m_attrId = 0; /* "has implementation" flag */ m_attrs[i].m_data.attr = attr; @@ -1089,7 +1089,7 @@ Node NamedAttrMapImpl::setNamedItem ( NodeImpl* arg, bool nsAware, DOMStringImpl m_element->parseAttribute(&m_attrs[i]); m_element->attributeChanged(m_attrs[i].id()); // ### dispatch mutation events - return replaced; + return tqreplaced; } } @@ -1142,10 +1142,10 @@ DOMStringImpl *NamedAttrMapImpl::valueAt(unsigned long index) const DOMStringImpl *NamedAttrMapImpl::getValue(NodeImpl::Id id, bool nsAware, DOMStringImpl* qName) const { - unsigned int mask = nsAware ? ~0L : NodeImpl_IdLocalMask; - id = (id & mask); + unsigned int tqmask = nsAware ? ~0L : NodeImpl_IdLocalMask; + id = (id & tqmask); for (unsigned long i = 0; i < m_attrCount; i++) - if ((m_attrs[i].id() & mask) == id) { + if ((m_attrs[i].id() & tqmask) == id) { // if we are called with a qualified name, filter out NS-aware elements with non-matching name. if (qName && (namespacePart(m_attrs[i].id()) != defaultNamespace) && strcasecmp(m_attrs[i].name(), qName)) @@ -1167,12 +1167,12 @@ void NamedAttrMapImpl::setValue(NodeImpl::Id id, DOMStringImpl *value, DOMString removeNamedItem(id, nsAware, qName, exceptioncode); return; } - unsigned int mask = nsAware ? ~0L : NodeImpl_IdLocalMask; - NodeImpl::Id mid = (id & mask); + unsigned int tqmask = nsAware ? ~0L : NodeImpl_IdLocalMask; + NodeImpl::Id mid = (id & tqmask); // Check for an existing attribute. for (unsigned long i = 0; i < m_attrCount; i++) { - if ((m_attrs[i].id() & mask) == mid) { + if ((m_attrs[i].id() & tqmask) == mid) { // if we are called with a qualified name, filter out NS-aware elements with non-matching name. if (qName && (namespacePart(m_attrs[i].id()) != defaultNamespace) && strcasecmp(m_attrs[i].name(), DOMString(qName))) -- cgit v1.2.1