Commit f0283d2c authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

use range based for (equal performance, better readability)

parent 4791d1d0
......@@ -174,10 +174,9 @@ void OperationRunner::clear()
{
Q_D(OperationRunner);
QMutexLocker locker(d->mutex);
for (QHash<Operation::Phase, QList< Operation* > >::iterator i = d->operations.begin(); i != d->operations.end(); ++i) {
qDeleteAll(i.value());
for (auto& elem : d->operations) {
qDeleteAll(elem);
}
d->operations.clear();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment