diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kpf/src/Request.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
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
Diffstat (limited to 'kpf/src/Request.cpp')
-rw-r--r-- | kpf/src/Request.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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; } |