From ecacb3c62f94d2b671a252aa177264f41f6869ea Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 22 May 2020 14:49:30 +0200 Subject: Port QLocale::quoteString from QStringRef to QStringView Task-number: QTBUG-84319 Change-Id: I29726ebfda7a5f51a0a6ee29e905b0b904256c8d Reviewed-by: Edward Welbourne Reviewed-by: Thiago Macieira --- src/corelib/text/qlocale.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/corelib/text/qlocale.cpp') 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()) { -- cgit v1.2.3