summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qfuturesynchronizer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/thread/qfuturesynchronizer.h')
-rw-r--r--src/corelib/thread/qfuturesynchronizer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/thread/qfuturesynchronizer.h b/src/corelib/thread/qfuturesynchronizer.h
index 8b85e20038..2cf2ca1b76 100644
--- a/src/corelib/thread/qfuturesynchronizer.h
+++ b/src/corelib/thread/qfuturesynchronizer.h
@@ -38,12 +38,12 @@ public:
void waitForFinished()
{
if (m_cancelOnWait) {
- for (int i = 0; i < m_futures.count(); ++i) {
+ for (int i = 0; i < m_futures.size(); ++i) {
m_futures[i].cancel();
}
}
- for (int i = 0; i < m_futures.count(); ++i) {
+ for (int i = 0; i < m_futures.size(); ++i) {
m_futures[i].waitForFinished();
}
}