From 8e3e34defd0e19d49be090046ba76decc2adb526 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 18 Sep 2012 22:41:59 +0100 Subject: Remove qUpperBound usages from qtbase Replace them with std::upper_bound; this allows for deprecation of qUpperBound. Change-Id: Idef01d2228b9a70eee3d52931d7aedb5bb6ba902 Reviewed-by: Marc Mutz Reviewed-by: Robin Burchell --- src/corelib/thread/qthreadpool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/corelib/thread/qthreadpool.cpp') diff --git a/src/corelib/thread/qthreadpool.cpp b/src/corelib/thread/qthreadpool.cpp index ee1abc86362..0e9a12a6956 100644 --- a/src/corelib/thread/qthreadpool.cpp +++ b/src/corelib/thread/qthreadpool.cpp @@ -43,6 +43,8 @@ #include "qthreadpool_p.h" #include "qelapsedtimer.h" +#include + #ifndef QT_NO_THREAD QT_BEGIN_NAMESPACE @@ -214,7 +216,7 @@ void QThreadPoolPrivate::enqueueTask(QRunnable *runnable, int priority) QList >::const_iterator begin = queue.constBegin(); QList >::const_iterator it = queue.constEnd(); if (it != begin && priority < (*(it - 1)).second) - it = qUpperBound(begin, --it, priority); + it = std::upper_bound(begin, --it, priority); queue.insert(it - begin, qMakePair(runnable, priority)); runnableReady.wakeOne(); } -- cgit v1.2.3