Skip to content

Commit

Permalink
Code tidy: replace a for loop with an algorithm
Browse files Browse the repository at this point in the history
Change-Id: Ie988101eb3165b92c5f4a140e4c301b9a46263bf
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
dangelog authored and liangqi committed Jun 8, 2018
1 parent c4ed965 commit 6c566e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/corelib/kernel/qcoreapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*!
Expand Down

0 comments on commit 6c566e5

Please sign in to comment.