diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 3094bcba97c..e9fb664da18 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 + 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 916715ddb8a..8ec9b22863b 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -845,7 +845,7 @@ \sa removeOne() */ -/*! \fn template bool QList::removeOne(const T &t) +/*! \fn template template bool QList::removeOne(const AT &t) \since 5.4 Removes the first element that compares equal to \a t from the