Code tidy: replace a for loop with an algorithm

Change-Id: Ie988101eb3165b92c5f4a140e4c301b9a46263bf
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Giuseppe D'Angelo 2018-05-09 18:37:02 +02:00 committed by Liang Qi
parent c4ed96513e
commit 6c566e506b
1 changed files with 1 additions and 3 deletions

View File

@ -1836,9 +1836,7 @@ void QCoreApplication::removePostedEvents(QObject *receiver, int eventType)
}
locker.unlock();
for (int i = 0; i < events.count(); ++i) {
delete events[i];
}
qDeleteAll(events);
}
/*!