Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO

This commit is contained in:
luisangelsm
2026-03-30 15:48:02 +02:00
parent 12a5949b16
commit e6cbfa634b
49 changed files with 227 additions and 204 deletions

View File

@ -4,6 +4,7 @@
*/
#include "httpresponse.h"
#include <utility>
using namespace stefanfrings;
@ -54,14 +55,14 @@ void HttpResponse::writeHeaders()
buffer.append(' ');
buffer.append(statusText);
buffer.append("\r\n");
foreach(QByteArray name, headers.keys())
for (const QByteArray &name : headers.keys())
{
buffer.append(name);
buffer.append(": ");
buffer.append(headers.value(name));
buffer.append("\r\n");
}
foreach(HttpCookie cookie,cookies.values())
for (const HttpCookie &cookie : cookies.values())
{
buffer.append("Set-Cookie: ");
buffer.append(cookie.toByteArray());