diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-09-11 13:23:50 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-09-15 08:12:39 +0200 |
commit | cb78972e375b9e5f8180b39bd6985ea0be75d2f7 (patch) | |
tree | 04950f8394dbfa881c59df2e67440edc3f689e6a /src/corelib/text | |
parent | 79e0374143ab385cb12a17443e91c8eb9d2f3a4b (diff) |
Remove deprecated API
And replace it's few remaining usages
Change-Id: I2dfbbaa5259acfece028606bef1e872c5692f9fe
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r-- | src/corelib/text/qstring.h | 6 | ||||
-rw-r--r-- | src/corelib/text/qstringalgorithms.h | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index f6c843b17a..789d06f9a2 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -80,12 +80,6 @@ namespace QtPrivate { template <bool...B> class BoolList; } -// QStringAlgorithms inline functions: - -int QtPrivate::compareStringsUtf8(const char *lhs, qsizetype lhss, QStringView rhs, Qt::CaseSensitivity cs) noexcept -{ return compareStrings(QUtf8StringView(lhs, lhss), rhs, cs); } - - class QLatin1String { public: diff --git a/src/corelib/text/qstringalgorithms.h b/src/corelib/text/qstringalgorithms.h index c0619ca8e5..08cf9b4c0a 100644 --- a/src/corelib/text/qstringalgorithms.h +++ b/src/corelib/text/qstringalgorithms.h @@ -86,8 +86,6 @@ Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QBasicUt Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QBasicUtf8StringView<false> lhs, QLatin1String rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION int compareStrings(QBasicUtf8StringView<false> lhs, QBasicUtf8StringView<false> rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; -Q_DECL_DEPRECATED inline int compareStringsUtf8(const char *lhs, qsizetype lhss, QStringView rhs, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; - Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool startsWith(QStringView haystack, QStringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool startsWith(QStringView haystack, QLatin1String needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; Q_REQUIRED_RESULT Q_CORE_EXPORT Q_DECL_PURE_FUNCTION bool startsWith(QLatin1String haystack, QStringView needle, Qt::CaseSensitivity cs = Qt::CaseSensitive) noexcept; |