summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qlist.h3
-rw-r--r--src/corelib/tools/qlist.qdoc2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index 3094bcba97..e9fb664da1 100644
--- a/src/corelib/tools/qlist.h
+++ b/src/corelib/tools/qlist.h
@@ -340,7 +340,8 @@ public:
erase(it, e);
return result;
}
- bool removeOne(const T &t)
+ template <typename AT>
+ bool removeOne(const AT &t)
{
const qsizetype i = indexOf(t);
if (i < 0)
diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc
index 916715ddb8..8ec9b22863 100644
--- a/src/corelib/tools/qlist.qdoc
+++ b/src/corelib/tools/qlist.qdoc
@@ -845,7 +845,7 @@
\sa removeOne()
*/
-/*! \fn template <typename T> bool QList<T>::removeOne(const T &t)
+/*! \fn template <typename T> template <typename AT> bool QList<T>::removeOne(const AT &t)
\since 5.4
Removes the first element that compares equal to \a t from the