doc: Remove invalid link and tone down language
QLatin1StringView::split() appears to be invalid. Pick-to: 6.8 6.9 Change-Id: I11066b8224cce0a6091c758367f602a63c6136a0 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
85899ff181
commit
4aff3488b8
@ -32,15 +32,14 @@ QT_BEGIN_NAMESPACE
|
|||||||
use(*it);
|
use(*it);
|
||||||
\endcode
|
\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
|
QStringTokenizer explicitly. You may write
|
||||||
\c{QStringTokenizer{string, separator}} (without template
|
\c{QStringTokenizer{string, separator}} (without template arguments),
|
||||||
arguments), or use the qTokenize() function, or the
|
or use either QStringView::tokenize() or QLatin1StringView::tokenize(),
|
||||||
QStringView::split() or QLatin1StringView::split() member functions
|
then store the return value only in an \c{auto} variable:
|
||||||
and store the return value only in \c{auto} variables:
|
|
||||||
|
|
||||||
\code
|
\code
|
||||||
auto result = string.split(sep);
|
auto result = strview.tokenize(sep);
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
This is because the template arguments of QStringTokenizer have a
|
This is because the template arguments of QStringTokenizer have a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user