From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpf/src/Request.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'kpf/src/Request.cpp') diff --git a/kpf/src/Request.cpp b/kpf/src/Request.cpp index 442e4993..886aac44 100644 --- a/kpf/src/Request.cpp +++ b/kpf/src/Request.cpp @@ -56,7 +56,7 @@ namespace KPF { TQString line(*it); - int colonPos = line.find(':'); + int colonPos = line.tqfind(':'); if (-1 != colonPos) { @@ -114,7 +114,7 @@ namespace KPF s.remove(0, 5); - int dotPos = s.find('.'); + int dotPos = s.tqfind('.'); if (-1 != dotPos) { @@ -224,31 +224,31 @@ namespace KPF return haveIfUnmodifiedSince_; } - QString + TQString Request::path() const { return path_; } - QString + TQString Request::host() const { return host_; } - QDateTime + TQDateTime Request::ifModifiedSince() const { return ifModifiedSince_; } - QDateTime + TQDateTime Request::ifUnmodifiedSince() const { return ifUnmodifiedSince_; } - QCString + TQCString Request::protocolString() const { TQCString s("HTTP/"); @@ -346,14 +346,14 @@ namespace KPF expectContinue_ = false; haveRange_ = false; persist_ = false; - path_ = TQString::null; - host_ = TQString::null; + path_ = TQString(); + host_ = TQString(); ifModifiedSince_ = TQDateTime(); ifUnmodifiedSince_ = TQDateTime(); range_.clear(); } - QString + TQString Request::clean(const TQString & _path) const { TQString s(_path); @@ -367,7 +367,7 @@ namespace KPF // Double slash -> slash. TQRegExp r("\\/\\/+"); - s.replace(r, "/"); + s.tqreplace(r, "/"); return s; } -- cgit v1.2.1