Fix range-loop-detach warning in qhttp2connection.cpp
Change-Id: I0b02e2f79ab7828858da3b4ca9840ad07d39a70a Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 7d5646c02e25a81f7b2e2c76b39505fba3c2c043) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
d0d83694c1
commit
67fffbaff1
@ -769,7 +769,7 @@ void QHttp2Connection::connectionError(Http2Error errorCode, const char *message
|
|||||||
const auto error = qt_error(errorCode);
|
const auto error = qt_error(errorCode);
|
||||||
auto messageView = QLatin1StringView(message);
|
auto messageView = QLatin1StringView(message);
|
||||||
|
|
||||||
for (QHttp2Stream *stream : m_streams) {
|
for (QHttp2Stream *stream : std::as_const(m_streams)) {
|
||||||
if (stream && stream->isActive())
|
if (stream && stream->isActive())
|
||||||
stream->finishWithError(error, messageView);
|
stream->finishWithError(error, messageView);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user