From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/xml/dom_stringimpl.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'khtml/xml/dom_stringimpl.cpp') diff --git a/khtml/xml/dom_stringimpl.cpp b/khtml/xml/dom_stringimpl.cpp index bb1a728e9..d4e568408 100644 --- a/khtml/xml/dom_stringimpl.cpp +++ b/khtml/xml/dom_stringimpl.cpp @@ -61,8 +61,8 @@ bool DOMStringImpl::containsOnlyWhitespace() const for (uint i = 0; i < l; i++) { TQChar c = s[i]; - if (c.unicode() <= 0x7F) { - if (c.unicode() > ' ') + if (c.tqunicode() <= 0x7F) { + if (c.tqunicode() > ' ') return false; } else { if (c.direction() != TQChar::DirWS) @@ -293,11 +293,11 @@ khtml::Length* DOMStringImpl::toCoordsArray(int& len) const int pos = 0; int pos2; - while((pos2 = str.find(' ', pos)) != -1) { - r[i++] = parseLength((TQChar *) str.unicode()+pos, pos2-pos); + while((pos2 = str.tqfind(' ', pos)) != -1) { + r[i++] = parseLength((TQChar *) str.tqunicode()+pos, pos2-pos); pos = pos2+1; } - r[i] = parseLength((TQChar *) str.unicode()+pos, str.length()-pos); + r[i] = parseLength((TQChar *) str.tqunicode()+pos, str.length()-pos); return r; } @@ -319,14 +319,14 @@ khtml::Length* DOMStringImpl::toLengthArray(int& len) const int pos = 0; int pos2; - while((pos2 = str.find(',', pos)) != -1) { - r[i++] = parseLength((TQChar *) str.unicode()+pos, pos2-pos); + while((pos2 = str.tqfind(',', pos)) != -1) { + r[i++] = parseLength((TQChar *) str.tqunicode()+pos, pos2-pos); pos = pos2+1; } /* IE Quirk: If the last comma is the last char skip it and reduce len by one */ if (str.length()-pos > 0) - r[i] = parseLength((TQChar *) str.unicode()+pos, str.length()-pos); + r[i] = parseLength((TQChar *) str.tqunicode()+pos, str.length()-pos); else len--; -- cgit v1.2.1