summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-09-03 15:36:50 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-09-04 09:57:48 +0200
commitc92c9b77a53be4347baed817ab1a439e1a95adc4 (patch)
treed86581ebe41a3e6ab0b50e8bff6728035e663259 /src/corelib/text
parent6d5c61bd7c15f81c81c08e84e09b25180782d98f (diff)
Doc: fix a bunch of qdoc warnings from wrong prototypes
* name method parameters consistently with their declaration * don't document parameters that are not there Change-Id: I06ae9fdca357ed29eb7a72802f149eb4914181f4 Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 62fc486a77fa882da6d60cfec323223dbbd26236) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qstring.cpp9
-rw-r--r--src/corelib/text/qstringview.cpp4
2 files changed, 5 insertions, 8 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index d74ec6b132..7ad9dfb123 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -4039,8 +4039,7 @@ qsizetype QString::lastIndexOf(const QString &str, qsizetype from, Qt::CaseSensi
\overload lastIndexOf()
Returns the index position of the last occurrence of the string \a
- str in this string, searching backward from index position \a
- from. Returns -1 if \a str is not found.
+ str in this string. Returns -1 if \a str is not found.
If \a cs is Qt::CaseSensitive (default), the search is case
sensitive; otherwise the search is case insensitive.
@@ -4091,8 +4090,7 @@ qsizetype QString::lastIndexOf(QLatin1String str, qsizetype from, Qt::CaseSensit
\overload lastIndexOf()
Returns the index position of the last occurrence of the string \a
- str in this string, searching backward from index position \a
- from. Returns -1 if \a str is not found.
+ str in this string. Returns -1 if \a str is not found.
If \a cs is Qt::CaseSensitive (default), the search is case
sensitive; otherwise the search is case insensitive.
@@ -4145,8 +4143,7 @@ qsizetype QString::lastIndexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs)
\overload lastIndexOf()
Returns the index position of the last occurrence of the string view \a
- str in this string, searching backward from index position \a
- from. Returns -1 if \a str is not found.
+ str in this string. Returns -1 if \a str is not found.
If \a cs is Qt::CaseSensitive (default), the search is case
sensitive; otherwise the search is case insensitive.
diff --git a/src/corelib/text/qstringview.cpp b/src/corelib/text/qstringview.cpp
index 0e90b25148..0553a7076c 100644
--- a/src/corelib/text/qstringview.cpp
+++ b/src/corelib/text/qstringview.cpp
@@ -964,8 +964,8 @@ QT_BEGIN_NAMESPACE
\since 6.2
Returns the index position of the last match of the regular
- expression \a re in the string view, which starts before the index
- position \a from. Returns -1 if \a re didn't match anywhere.
+ expression \a re in the string view. Returns -1 if \a re didn't match
+ anywhere.
If the match is successful and \a rmatch is not \nullptr, it also
writes the results of the match into the QRegularExpressionMatch object