From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjs/function.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'kjs/function.cpp') diff --git a/kjs/function.cpp b/kjs/function.cpp index 9827cbff7..ef5410cf8 100644 --- a/kjs/function.cpp +++ b/kjs/function.cpp @@ -55,7 +55,7 @@ UString encodeURI(ExecState *exec, UString string, UString unescapedSet) for (int k = 0; k < string.size(); k++) { UChar C = string[k]; - if (unescapedSet.tqfind(C) >= 0) { + if (unescapedSet.find(C) >= 0) { if (encbufLen+1 >= encbufAlloc) encbuf = (UChar*)realloc(encbuf,(encbufAlloc *= 2)*sizeof(UChar)); encbuf[encbufLen++] = C; @@ -244,7 +244,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) } // UTF-8 transform - const unsigned long tqreplacementChar = 0xFFFD; + const unsigned long replacementChar = 0xFFFD; unsigned long V; if (n == 2) { unsigned long yyyyy = octets[0] & 0x1F; @@ -252,7 +252,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) V = (yyyyy << 6) | zzzzzz; // 2-byte sequence overlong for this value? if (V < 0x80) - V = tqreplacementChar; + V = replacementChar; C = UChar((unsigned short)V); } else if (n == 3) { @@ -264,7 +264,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) // an invalid value or UTF-16 surrogate? if (V < 0x800 || V == 0xFFFE || V == 0xFFFF || (V >= 0xD800 && V <= 0xDFFF)) - V = tqreplacementChar; + V = replacementChar; C = UChar((unsigned short)V); } else { @@ -289,7 +289,7 @@ UString decodeURI(ExecState *exec, UString string, UString reservedSet) } } - if (reservedSet.tqfind(C) < 0) { + if (reservedSet.find(C) < 0) { decbuf[decbufLen++] = C; } else { -- cgit v1.2.1