summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qlocale.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-05-22 14:49:30 +0200
committerLars Knoll <lars.knoll@qt.io>2020-06-11 02:50:16 +0200
commitecacb3c62f94d2b671a252aa177264f41f6869ea (patch)
tree9595f19bdeda1009ccf07155d51c2eaff679fe54 /src/corelib/text/qlocale.cpp
parentce8c33e710a9003a1912ab09fc31417b50b7a4b5 (diff)
Port QLocale::quoteString from QStringRef to QStringView
Task-number: QTBUG-84319 Change-Id: I29726ebfda7a5f51a0a6ee29e905b0b904256c8d Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qlocale.cpp')
-rw-r--r--src/corelib/text/qlocale.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 96b6646c90..a2cf2caec0 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -1124,22 +1124,20 @@ QLocale::NumberOptions QLocale::numberOptions() const
}
/*!
+ \fn QString QLocale::quoteString(const QString &str, QuotationStyle style) const
+
\since 4.8
Returns \a str quoted according to the current locale using the given
quotation \a style.
*/
-QString QLocale::quoteString(const QString &str, QuotationStyle style) const
-{
- return quoteString(QStringRef(&str), style);
-}
/*!
- \since 4.8
+ \since 6.0
\overload
*/
-QString QLocale::quoteString(const QStringRef &str, QuotationStyle style) const
+QString QLocale::quoteString(QStringView str, QuotationStyle style) const
{
#ifndef QT_NO_SYSTEMLOCALE
if (d->m_data == systemData()) {