summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/parser/http.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /klinkstatus/src/parser/http.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klinkstatus/src/parser/http.cpp')
-rw-r--r--klinkstatus/src/parser/http.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/klinkstatus/src/parser/http.cpp b/klinkstatus/src/parser/http.cpp
index 1133c937..6e086739 100644
--- a/klinkstatus/src/parser/http.cpp
+++ b/klinkstatus/src/parser/http.cpp
@@ -29,7 +29,7 @@
void HttpResponseHeader::parseLocation()
{
- QString cabecalho(toString());
+ TQString cabecalho(toString());
int location = findWord(cabecalho, "Location: ");
Q_ASSERT(location != -1);
@@ -55,25 +55,25 @@ void HttpResponseHeader::parseLocation()
location_ = cabecalho.mid(location, fim_de_linha - location);
}
-QString HttpResponseHeader::charset() const
+TQString HttpResponseHeader::charset() const
{
return HttpResponseHeader::charset(value("content-type"));
}
-QString HttpResponseHeader::charset(QString const& contentTypeHttpHeaderLine)
+TQString HttpResponseHeader::charset(TQString const& contentTypeHttpHeaderLine)
{
- QString _charset;
+ TQString _charset;
if(contentTypeHttpHeaderLine.isEmpty())
return _charset;
int index = contentTypeHttpHeaderLine.find("charset=");
if(index != -1)
- index += QString("charset=").length();
+ index += TQString("charset=").length();
else {
index = contentTypeHttpHeaderLine.find("charset:");
if(index != -1)
- index += QString("charset:").length();
+ index += TQString("charset:").length();
}
if(index != -1) {