From 122d66f69fa44e11202fccdab076fe1ec368f971 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 25 May 2020 13:12:51 +0200 Subject: Port QtNetwork from QStringRef to QStringView MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-84319 Change-Id: I0f4e83c282b58ab4cc5e397b21981978f79d92cf Reviewed-by: Alex Blasche Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Timur Pocheptsov --- src/network/ssl/qsslsocket_openssl_symbols.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/network/ssl/qsslsocket_openssl_symbols.cpp') diff --git a/src/network/ssl/qsslsocket_openssl_symbols.cpp b/src/network/ssl/qsslsocket_openssl_symbols.cpp index 1756333371..c74a65ab37 100644 --- a/src/network/ssl/qsslsocket_openssl_symbols.cpp +++ b/src/network/ssl/qsslsocket_openssl_symbols.cpp @@ -532,7 +532,7 @@ bool q_resolveOpenSslSymbols() struct NumericallyLess { typedef bool result_type; - result_type operator()(const QStringRef &lhs, const QStringRef &rhs) const + result_type operator()(QStringView lhs, QStringView rhs) const { bool ok = false; int b = 0; @@ -552,10 +552,10 @@ struct NumericallyLess struct LibGreaterThan { typedef bool result_type; - result_type operator()(const QString &lhs, const QString &rhs) const + result_type operator()(QStringView lhs, QStringView rhs) const { - const QVector lhsparts = lhs.splitRef(QLatin1Char('.')); - const QVector rhsparts = rhs.splitRef(QLatin1Char('.')); + const QVector lhsparts = lhs.split(QLatin1Char('.')); + const QVector rhsparts = rhs.split(QLatin1Char('.')); Q_ASSERT(lhsparts.count() > 1 && rhsparts.count() > 1); // note: checking rhs < lhs, the same as lhs > rhs -- cgit v1.2.3