diff options
author | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-09-07 17:29:22 +0300 |
---|---|---|
committer | Anton Kudryavtsev <anton.kudryavtsev@vk.team> | 2023-09-08 19:17:35 +0300 |
commit | 8e88797b364cb6a9b041f532f8fb114cd44a4a06 (patch) | |
tree | 8438e10ba66f37da3f336d2090a10e26917a9c9a /src/plugins/tls | |
parent | bf06af559ca6b5c0e7bffa1d71f540fe6036512b (diff) |
qtls_schannel: avoid implicit detach
by const method usage
Change-Id: I27863d691c228275fc795dfcfbcbcd11e438abc9
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/plugins/tls')
-rw-r--r-- | src/plugins/tls/schannel/qtls_schannel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/tls/schannel/qtls_schannel.cpp b/src/plugins/tls/schannel/qtls_schannel.cpp index 9f9316d571..3c1864f045 100644 --- a/src/plugins/tls/schannel/qtls_schannel.cpp +++ b/src/plugins/tls/schannel/qtls_schannel.cpp @@ -2562,7 +2562,7 @@ bool TlsCryptographSchannel::verifyCertContext(CERT_CONTEXT *certContext) } if (!peerCertificateChain.isEmpty()) - QTlsBackend::storePeerCertificate(d, peerCertificateChain.first()); + QTlsBackend::storePeerCertificate(d, peerCertificateChain.constFirst()); const auto &configuration = q->sslConfiguration(); // Probably, updated by QTlsBackend::storePeerCertificate etc. // @Note: Somewhat copied from qsslsocket_mac.cpp |