Drop the deprecated QStringViewLiteral
Change-Id: I6e6643b4c7cbcd43c495c332de0d6874856b9528 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>bb10
parent
688e5da4e7
commit
554ef6c39c
|
|
@ -76,10 +76,6 @@ Q_STATIC_ASSERT_X(sizeof(qunicodechar) == 2,
|
|||
}()) \
|
||||
/**/
|
||||
|
||||
#if QT_DEPRECATED_SINCE(5, 14)
|
||||
# define QStringViewLiteral(str) QStringView(QT_UNICODE_LITERAL(str), QtPrivate::Deprecated)
|
||||
#endif
|
||||
|
||||
using QStringPrivate = QArrayDataPointer<ushort>;
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
|
|
|||
|
|
@ -202,13 +202,6 @@ public:
|
|||
template <typename Char>
|
||||
Q_DECL_CONSTEXPR QStringView(const Char *str) noexcept;
|
||||
#else
|
||||
#if QT_DEPRECATED_SINCE(5, 14)
|
||||
template <typename Array, if_compatible_array<Array> = true>
|
||||
QT_DEPRECATED_VERSION_X_5_14(R"(Use u"~~~" or QStringView(u"~~~") instead of QStringViewLiteral("~~~"))")
|
||||
Q_DECL_CONSTEXPR QStringView(const Array &str, QtPrivate::Deprecated_t) noexcept
|
||||
: QStringView(str, lengthHelperArray(str)) {}
|
||||
#endif // QT_DEPRECATED_SINCE
|
||||
|
||||
template <typename Array, if_compatible_array<Array> = true>
|
||||
Q_DECL_CONSTEXPR QStringView(const Array &str) noexcept
|
||||
: QStringView(str, lengthHelperArray(str)) {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue