diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-05-25 13:12:51 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-06-10 09:09:36 +0200 |
commit | 122d66f69fa44e11202fccdab076fe1ec368f971 (patch) | |
tree | 07d6c3bca6a3be5f246fef74c9efd61e2fe18d8e /src/network/ssl/qsslsocket_openssl_symbols.cpp | |
parent | 4ab3089a2cbcc3b0656a36e9c22ca2d72e150c7e (diff) |
Port QtNetwork from QStringRef to QStringView
Task-number: QTBUG-84319
Change-Id: I0f4e83c282b58ab4cc5e397b21981978f79d92cf
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/ssl/qsslsocket_openssl_symbols.cpp')
-rw-r--r-- | src/network/ssl/qsslsocket_openssl_symbols.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<QStringRef> lhsparts = lhs.splitRef(QLatin1Char('.')); - const QVector<QStringRef> rhsparts = rhs.splitRef(QLatin1Char('.')); + const QVector<QStringView> lhsparts = lhs.split(QLatin1Char('.')); + const QVector<QStringView> rhsparts = rhs.split(QLatin1Char('.')); Q_ASSERT(lhsparts.count() > 1 && rhsparts.count() > 1); // note: checking rhs < lhs, the same as lhs > rhs |