diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-20 18:25:29 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-23 20:08:07 +0200 |
commit | 6f265faa176d6bfc5778a20687a83da698ab6a89 (patch) | |
tree | 2dc6d9c5d22cecf647827e35e91fc242ba6d54ef | |
parent | 85ba43061f48bd7d11abc31b5315224d9fe926db (diff) |
QList/QVLA: fixup the docs
I'm not 100% sure that qdoc needs this, but in case it does,
here's the commit.
Change-Id: Ia3e17a56fd5df766c250f4875ba5e19e12b98d11
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/corelib/tools/qlist.qdoc | 10 | ||||
-rw-r--r-- | src/corelib/tools/qvarlengtharray.qdoc | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index 84296e8e47..f2f07e373f 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -836,7 +836,7 @@ \sa remove() */ -/*! \fn template <typename T> template <typename AT> qsizetype QList<T>::removeAll(const AT &t) +/*! \fn template <typename T> template <typename AT = T> qsizetype QList<T>::removeAll(const AT &t) \since 5.4 Removes all elements that compare equal to \a t from the @@ -845,7 +845,7 @@ \sa removeOne() */ -/*! \fn template <typename T> template <typename AT> bool QList<T>::removeOne(const AT &t) +/*! \fn template <typename T> template <typename AT = T> bool QList<T>::removeOne(const AT &t) \since 5.4 Removes the first element that compares equal to \a t from the @@ -952,7 +952,7 @@ \sa resize() */ -/*! \fn template <typename T> template <typename AT> qsizetype QList<T>::indexOf(const AT &value, qsizetype from = 0) const +/*! \fn template <typename T> template <typename AT = T> qsizetype QList<T>::indexOf(const AT &value, qsizetype from = 0) const Returns the index position of the first occurrence of \a value in the list, searching forward from index position \a from. @@ -967,7 +967,7 @@ \sa lastIndexOf(), contains() */ -/*! \fn template <typename T> template <typename AT> qsizetype QList<T>::lastIndexOf(const AT &value, qsizetype from = -1) const +/*! \fn template <typename T> template <typename AT = T> qsizetype QList<T>::lastIndexOf(const AT &value, qsizetype from = -1) const Returns the index position of the last occurrence of the value \a value in the list, searching backward from index position \a @@ -983,7 +983,7 @@ \sa indexOf() */ -/*! \fn template <typename T> template <typename AT> bool QList<T>::contains(const AT &value) const +/*! \fn template <typename T> template <typename AT = T> bool QList<T>::contains(const AT &value) const Returns \c true if the list contains an occurrence of \a value; otherwise returns \c false. diff --git a/src/corelib/tools/qvarlengtharray.qdoc b/src/corelib/tools/qvarlengtharray.qdoc index 99349d0b3d..e454276f9d 100644 --- a/src/corelib/tools/qvarlengtharray.qdoc +++ b/src/corelib/tools/qvarlengtharray.qdoc @@ -874,7 +874,7 @@ \sa append(), operator<<() */ -/*! \fn template<class T, qsizetype Prealloc> template <typename AT> qsizetype QVarLengthArray<T, Prealloc>::indexOf(const AT &value, qsizetype from = 0) const +/*! \fn template<class T, qsizetype Prealloc> template <typename AT = T> qsizetype QVarLengthArray<T, Prealloc>::indexOf(const AT &value, qsizetype from = 0) const \since 5.3 Returns the index position of the first occurrence of \a value in @@ -887,7 +887,7 @@ \sa lastIndexOf(), contains() */ -/*! \fn template<class T, qsizetype Prealloc> template <typename AT> qsizetype QVarLengthArray<T, Prealloc>::lastIndexOf(const AT &value, qsizetype from = -1) const +/*! \fn template<class T, qsizetype Prealloc> template <typename AT = T> qsizetype QVarLengthArray<T, Prealloc>::lastIndexOf(const AT &value, qsizetype from = -1) const \since 5.3 Returns the index position of the last occurrence of the value \a @@ -901,7 +901,7 @@ \sa indexOf(), contains() */ -/*! \fn template<class T, qsizetype Prealloc> template <typename AT> bool QVarLengthArray<T, Prealloc>::contains(const AT &value) const +/*! \fn template<class T, qsizetype Prealloc> template <typename AT = T> bool QVarLengthArray<T, Prealloc>::contains(const AT &value) const \since 5.3 Returns \c true if the array contains an occurrence of \a value; |