diff options
Diffstat (limited to 'khtml/xml/dom_stringimpl.cpp')
-rw-r--r-- | khtml/xml/dom_stringimpl.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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--; |