mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-29 11:48:05 -06:00
Rename literal operator
Qt 6.4 introduced `QString operator""_s()` and the previous `""_qs` is deprecated since Qt 6.8.
This commit is contained in:
@@ -74,7 +74,7 @@ QString Http::httpDate()
|
||||
// [RFC 7231] 7.1.1.1. Date/Time Formats
|
||||
// example: "Sun, 06 Nov 1994 08:49:37 GMT"
|
||||
|
||||
return QLocale::c().toString(QDateTime::currentDateTimeUtc(), u"ddd, dd MMM yyyy HH:mm:ss"_qs)
|
||||
return QLocale::c().toString(QDateTime::currentDateTimeUtc(), u"ddd, dd MMM yyyy HH:mm:ss"_s)
|
||||
.append(u" GMT");
|
||||
}
|
||||
|
||||
@@ -106,5 +106,5 @@ void Http::compressContent(Response &response)
|
||||
return;
|
||||
|
||||
response.content = compressedData;
|
||||
response.headers[HEADER_CONTENT_ENCODING] = u"gzip"_qs;
|
||||
response.headers[HEADER_CONTENT_ENCODING] = u"gzip"_s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user