summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstring.cpp
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-21 14:44:21 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-05-02 12:23:56 +0200
commit34242f843ec41b63c706e4604ac3a65805d11107 (patch)
treeb8b062e87ee4a8150536e3758ef3772f1dc50ba0 /src/corelib/text/qstring.cpp
parent651ba6535c4dc707fb9a473f974f0e27bac9eb98 (diff)
Deprecate _qs and _qba literal operators in favor of _s and _ba
[ChangeLog][QtCore] Deprecated _qs and _qba literal operators for QString and QByteArray in favor of _s and _ba in the Qt::Literals::StringLiterals namespace. Task-number: QTBUG-101408 Change-Id: I26aee0055e3b4c1860de6eda8e0eb857c5b3e11a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qstring.cpp')
-rw-r--r--src/corelib/text/qstring.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index 00f899ee99..acf02832da 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -10987,11 +10987,13 @@ QString QString::toHtmlEscaped() const
\sa QByteArrayLiteral
*/
+#if QT_DEPRECATED_SINCE(6, 8)
/*!
\fn QtLiterals::operator""_qs(const char16_t *str, size_t size)
\relates QString
\since 6.2
+ \deprecated [6.8] Use \c _s from Qt::StringLiterals namespace instead.
Literal operator that creates a QString out of the first \a size characters in
the char16_t string literal \a str.
@@ -11009,6 +11011,7 @@ QString QString::toHtmlEscaped() const
\sa QStringLiteral, QtLiterals::operator""_qba(const char *str, size_t size)
*/
+#endif // QT_DEPRECATED_SINCE(6, 8)
/*!
\fn Qt::Literals::StringLiterals::operator""_s(const char16_t *str, size_t size)