From e985f7e545f4739493965aad69bbecb136dc9346 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 16 Jun 2011 19:02:47 +0000 Subject: TQt4 port kdewebdev This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- klinkstatus/src/parser/http.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'klinkstatus/src/parser/http.cpp') 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(); } -- cgit v1.2.1