From 8c5e5af11f83b21b61e9a4787a8435193c5d647e Mon Sep 17 00:00:00 2001 From: Anton Kudryavtsev Date: Thu, 31 Aug 2023 13:48:18 +0300 Subject: [PATCH] qnetworkreplyhttpimpl: use const more MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to avoid implicit detach Change-Id: Ifac91e514b069d0426c70bd7e11cc04baca7994b Reviewed-by: MÃ¥rten Nordheim --- src/network/access/qnetworkreplyhttpimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/access/qnetworkreplyhttpimpl.cpp b/src/network/access/qnetworkreplyhttpimpl.cpp index 653764765cf..38390ecacfa 100644 --- a/src/network/access/qnetworkreplyhttpimpl.cpp +++ b/src/network/access/qnetworkreplyhttpimpl.cpp @@ -1726,7 +1726,7 @@ QNetworkCacheMetaData QNetworkReplyHttpImplPrivate::fetchCacheMetaData(const QNe // Don't store Warning 1xx headers if (header == "warning") { - QByteArray v = q->rawHeader(header); + const QByteArray v = q->rawHeader(header); if (v.size() == 3 && v[0] == '1' && isAsciiDigit(v[1])