From 374d939d8af431477ce2601815f0ba121b66871c Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 15 Feb 2011 19:11:41 +0000 Subject: Allow kdelibs to function correctly with TQt for Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kioslave/http/http.cc | 4 ++-- kioslave/http/kcookiejar/kcookiejar.cpp | 2 +- kioslave/iso/kiso.cpp | 2 +- kioslave/iso/kisofile.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kioslave') diff --git a/kioslave/http/http.cc b/kioslave/http/http.cc index f6ab75195..fa8997eca 100644 --- a/kioslave/http/http.cc +++ b/kioslave/http/http.cc @@ -4711,7 +4711,7 @@ FILE* HTTPProtocol::checkCacheEntry( bool readWrite) TQCString u = m_request.url.url().latin1(); for(int i = u.length(); i--;) { - hash = (hash * 12211 + u.at(i)) % 2147483563; + hash = (hash * 12211 + static_cast(u.tqat(i))) % 2147483563; } TQString hashString; @@ -5943,7 +5943,7 @@ TQString HTTPProtocol::createDigestAuth ( bool isForProxy ) for (int i = 0; i < count; i++ ) { - KURL u ( info.digestURI.at(i) ); + KURL u ( info.digestURI.tqat(i) ); send &= (m_request.url.protocol().lower() == u.protocol().lower()); send &= (m_request.hostname.lower() == u.host().lower()); diff --git a/kioslave/http/kcookiejar/kcookiejar.cpp b/kioslave/http/kcookiejar/kcookiejar.cpp index 83c2bd0e7..ca544ac62 100644 --- a/kioslave/http/kcookiejar/kcookiejar.cpp +++ b/kioslave/http/kcookiejar/kcookiejar.cpp @@ -618,7 +618,7 @@ void KCookieJar::extractDomains(const TQString &_fqdn, return; } // Return numeric IPv4 addresses as is... - if ((_fqdn.at(0) >= '0') && (_fqdn.at(0) <= '9')) + if ((_fqdn.tqat(0) >= TQChar('0')) && (_fqdn.tqat(0) <= TQChar('9'))) { if (_fqdn.tqfind(TQRegExp(IP_ADDRESS_EXPRESSION)) > -1) { diff --git a/kioslave/iso/kiso.cpp b/kioslave/iso/kiso.cpp index f487ad2f5..a260b5244 100644 --- a/kioslave/iso/kiso.cpp +++ b/kioslave/iso/kiso.cpp @@ -192,7 +192,7 @@ static int readf(char *buf, int start, int len,void *udata) { TQIODevice* dev = ( static_cast (udata) )->device(); - if (dev->at(start<<11)) { + if (dev->tqat(start<<11)) { if ((dev->readBlock(buf, len<<11)) != -1) return (len); } kdDebug() << "KIso::ReadRequest failed start: " << start << " len: " << len << endl; diff --git a/kioslave/iso/kisofile.cpp b/kioslave/iso/kisofile.cpp index 9be5dfad1..5235ea4a0 100644 --- a/kioslave/iso/kisofile.cpp +++ b/kioslave/iso/kisofile.cpp @@ -42,7 +42,7 @@ TQByteArray KIsoFile::data(long long pos, int count) const { TQByteArray r; int rlen; - if ( archive()->device()->at(position()+pos) && + if ( archive()->device()->tqat(position()+pos) && r.tqresize( ((pos+count) < size()) ? count : size()-pos) ) { rlen=archive()->device()->readBlock( r.data(), r.size() ); if (rlen ==- 1) r.resize(0); -- cgit v1.2.1