Avoid detaching Qt container in SyncthingConnection::abortAllRequests()
* See https://doc.qt.io/qt-5/qtglobal.html#qAsConst * Using std::as_const() instead of qAsConst() to keep support for Qt 5.6
This commit is contained in:
parent
1bf58bf38d
commit
64686caee6
|
@ -314,7 +314,7 @@ void SyncthingConnection::abortAllRequests()
|
||||||
if (m_logReply) {
|
if (m_logReply) {
|
||||||
m_logReply->abort();
|
m_logReply->abort();
|
||||||
}
|
}
|
||||||
for (auto *const reply : m_otherReplies) {
|
for (auto *const reply : std::as_const(m_otherReplies)) {
|
||||||
reply->abort();
|
reply->abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue