summaryrefslogtreecommitdiffstats
path: root/src/network/ssl/qsslconfiguration.h
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-01-23 13:11:18 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-01-28 17:05:44 +0000
commit131b3cffc839dea602998e62d238a525707b0f5b (patch)
tree02162ce5af7c1467af42e973058ffb7695c3e6c2 /src/network/ssl/qsslconfiguration.h
parentf99b3719f0b89842de82099215adea9a074e263f (diff)
[QSSL] Pass params of shareable type by const-ref rather than by value
Change-Id: I9c09a3e2dfb90eb22d4509ac6c450a0bb5da48f6 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com> Reviewed-by: Richard J. Moore <rich@kde.org>
Diffstat (limited to 'src/network/ssl/qsslconfiguration.h')
-rw-r--r--src/network/ssl/qsslconfiguration.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/ssl/qsslconfiguration.h b/src/network/ssl/qsslconfiguration.h
index 7bc7a32cb7..0f53413cfd 100644
--- a/src/network/ssl/qsslconfiguration.h
+++ b/src/network/ssl/qsslconfiguration.h
@@ -136,7 +136,11 @@ public:
NextProtocolNegotiationUnsupported
};
+#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
+ void setAllowedNextProtocols(const QList<QByteArray> &protocols);
+#else
void setAllowedNextProtocols(QList<QByteArray> protocols);
+#endif
QList<QByteArray> allowedNextProtocols() const;
QByteArray nextNegotiatedProtocol() const;