From 1b245a8a46ca1728ef82ba71044cd00a158d1eff Mon Sep 17 00:00:00 2001 From: David Boddie Date: Thu, 6 Feb 2025 17:17:07 +0100 Subject: [PATCH] doc: Remove invalid link and tone down language QLatin1StringView::split() appears to be invalid. Pick-to: 6.8 Change-Id: I11066b8224cce0a6091c758367f602a63c6136a0 Reviewed-by: Edward Welbourne (cherry picked from commit 4aff3488b8262ef23f1230b7f530c46ca2d61ac1) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/text/qstringtokenizer.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/corelib/text/qstringtokenizer.cpp b/src/corelib/text/qstringtokenizer.cpp index 79b355ceff2..d6443ee4a71 100644 --- a/src/corelib/text/qstringtokenizer.cpp +++ b/src/corelib/text/qstringtokenizer.cpp @@ -32,15 +32,14 @@ QT_BEGIN_NAMESPACE use(*it); \endcode - \note You should never, ever, name the template arguments of a + \note You should never name the template arguments of a QStringTokenizer explicitly. You may write - \c{QStringTokenizer{string, separator}} (without template - arguments), or use the qTokenize() function, or the - QStringView::split() or QLatin1StringView::split() member functions - and store the return value only in \c{auto} variables: + \c{QStringTokenizer{string, separator}} (without template arguments), + or use either QStringView::tokenize() or QLatin1StringView::tokenize(), + then store the return value only in an \c{auto} variable: \code - auto result = string.split(sep); + auto result = strview.tokenize(sep); \endcode This is because the template arguments of QStringTokenizer have a