summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/parser/http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/parser/http.cpp')
-rw-r--r--klinkstatus/src/parser/http.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/klinkstatus/src/parser/http.cpp b/klinkstatus/src/parser/http.cpp
index 6e086739..0a62a9a2 100644
--- a/klinkstatus/src/parser/http.cpp
+++ b/klinkstatus/src/parser/http.cpp
@@ -34,8 +34,8 @@ void HttpResponseHeader::parseLocation()
int location = findWord(cabecalho, "Location: ");
Q_ASSERT(location != -1);
- int fim_de_linha_1 = cabecalho.find('\n', location);
- int fim_de_linha_2 = cabecalho.find('\r', location);
+ int fim_de_linha_1 = cabecalho.tqfind('\n', location);
+ int fim_de_linha_2 = cabecalho.tqfind('\r', location);
Q_ASSERT(fim_de_linha_1 != -1 || fim_de_linha_2 != -1);
@@ -67,11 +67,11 @@ TQString HttpResponseHeader::charset(TQString const& contentTypeHttpHeaderLine)
if(contentTypeHttpHeaderLine.isEmpty())
return _charset;
- int index = contentTypeHttpHeaderLine.find("charset=");
+ int index = contentTypeHttpHeaderLine.tqfind("charset=");
if(index != -1)
index += TQString("charset=").length();
else {
- index = contentTypeHttpHeaderLine.find("charset:");
+ index = contentTypeHttpHeaderLine.tqfind("charset:");
if(index != -1)
index += TQString("charset:").length();
}