From 182bfb21b799daf578b9a5fede8431824a016da7 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 3 Sep 2013 00:42:46 +0200 Subject: Remove qFind usages from QLinkedList QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I00f5a2bf96e969b85d63479bab6497d6e1bd17b1 Reviewed-by: Thiago Macieira --- src/corelib/tools/qlinkedlist.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/tools/qlinkedlist.h') diff --git a/src/corelib/tools/qlinkedlist.h b/src/corelib/tools/qlinkedlist.h index 572bdfba5d..28386c632c 100644 --- a/src/corelib/tools/qlinkedlist.h +++ b/src/corelib/tools/qlinkedlist.h @@ -48,6 +48,8 @@ #include #include +#include + QT_BEGIN_NAMESPACE @@ -404,7 +406,7 @@ template bool QLinkedList::removeOne(const T &_t) { detach(); - iterator it = qFind(begin(), end(), _t); + iterator it = std::find(begin(), end(), _t); if (it != end()) { erase(it); return true; -- cgit v1.2.3