summaryrefslogtreecommitdiffstats
path: root/src/network/ssl/qsslerror.h
diff options
context:
space:
mode:
authorLars Schmertmann <Lars.Schmertmann@governikus.de>2020-07-13 12:43:44 +0200
committerLars Schmertmann <Lars.Schmertmann@governikus.de>2020-08-06 19:49:02 +0200
commitaf1544bda242d02690bd092f1d1ed7ca57659529 (patch)
tree5918f1270b246dc4a14d76d32f0ed44d9377bf9d /src/network/ssl/qsslerror.h
parent3938d932220e70e2dccb81786135acfcf9ea187b (diff)
Mark QSslError(SslError error) as explicit
Currently it is possible to compare a QSslError with a QSslError::SslError because QSslError has an implicit constructor. But the comparison often fails because a QSslError received from the system contains a certificate. [ChangeLog][QtNetwork][QSslError] The constructor QSslError(QSslError::SslError error) is now explicit. Change-Id: I36cc5895245d3b43ab4b8d65a9635893d6b0e6a4 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/ssl/qsslerror.h')
-rw-r--r--src/network/ssl/qsslerror.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qsslerror.h b/src/network/ssl/qsslerror.h
index 6c4dabde96..f135dd10b7 100644
--- a/src/network/ssl/qsslerror.h
+++ b/src/network/ssl/qsslerror.h
@@ -100,7 +100,7 @@ public:
// RVCT compiler in debug build does not like about default values in const-
// So as an workaround we define all constructor overloads here explicitly
QSslError();
- QSslError(SslError error);
+ explicit QSslError(SslError error);
QSslError(SslError error, const QSslCertificate &certificate);
QSslError(const QSslError &other);