summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2013-09-03 00:42:46 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-04 22:37:00 +0200
commit182bfb21b799daf578b9a5fede8431824a016da7 (patch)
tree65cebe91177a1d5c545cb8d1bb9359e3c004e24a /src
parent5700071ac33b1490716c91f52edf5b1444201fc0 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qlinkedlist.h4
1 files changed, 3 insertions, 1 deletions
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 <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;