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 <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2013-09-03 00:42:46 +02:00 committed by The Qt Project
parent 5700071ac3
commit 182bfb21b7

View File

@ -48,6 +48,8 @@
#include <iterator>
#include <list>
#include <algorithm>
QT_BEGIN_NAMESPACE
@ -404,7 +406,7 @@ template <typename T>
bool QLinkedList<T>::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;