diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:49 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 11:39:49 -0600 |
commit | bb37c4052a9edfff2196984cef241b1ce2df7bb3 (patch) | |
tree | 20f184005dcb8d5315aec18cb3253c7ff452c8ca /plugins/webinterface/httpserver.cpp | |
parent | a90eb215f53c95d81f95b32255098066d90556d9 (diff) | |
download | ktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.tar.gz ktorrent-bb37c4052a9edfff2196984cef241b1ce2df7bb3.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'plugins/webinterface/httpserver.cpp')
-rw-r--r-- | plugins/webinterface/httpserver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/webinterface/httpserver.cpp b/plugins/webinterface/httpserver.cpp index 915e28f..4d582a7 100644 --- a/plugins/webinterface/httpserver.cpp +++ b/plugins/webinterface/httpserver.cpp @@ -237,12 +237,12 @@ namespace kt { if (!cookie) return now.toString("%1, dd %2 yyyy hh:mm:ss UTC") - .tqarg(days[now.date().dayOfWeek() - 1]) - .tqarg(months[now.date().month() - 1]); + .arg(days[now.date().dayOfWeek() - 1]) + .arg(months[now.date().month() - 1]); else return now.toString("%1, dd-%2-yyyy hh:mm:ss GMT") - .tqarg(days[now.date().dayOfWeek() - 1]) - .tqarg(months[now.date().month() - 1]); + .arg(days[now.date().dayOfWeek() - 1]) + .arg(months[now.date().month() - 1]); } void HttpServer::setDefaultResponseHeaders(HttpResponseHeader & hdr,const TQString & content_type,bool with_session_info) @@ -253,7 +253,7 @@ namespace kt hdr.setValue("Connection","keep-alive"); if (with_session_info && session.sessionId && session.logged_in) { - hdr.setValue("Set-Cookie",TQString("KT_SESSID=%1").tqarg(session.sessionId)); + hdr.setValue("Set-Cookie",TQString("KT_SESSID=%1").arg(session.sessionId)); } } @@ -329,7 +329,7 @@ namespace kt { // clear cookie in case of login page TQDateTime dt = TQDateTime::currentDateTime().addDays(-1); - TQString cookie = TQString("KT_SESSID=666; expires=%1 +0000").tqarg(DateTimeToString(dt,true)); + TQString cookie = TQString("KT_SESSID=666; expires=%1 +0000").arg(DateTimeToString(dt,true)); rhdr.setValue("Set-Cookie",cookie); } |