Commit baa5ce42 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't use qAsConst over a temporary variable

parent c91f1fc1
......@@ -416,7 +416,8 @@ void AddresseeLineEditPrivate::akonadiPerformSearch()
qCDebug(LIBKDEPIMAKONADI_LOG) << "searching akonadi with:" << mSearchString;
// first, kill all job still in flight, they are no longer current
for (const QPointer<Akonadi::Job> &job : qAsConst(AddresseeLineEditManager::self()->akonadiJobsInFlight)) {
const auto akonadiJobsInFlight = AddresseeLineEditManager::self()->akonadiJobsInFlight;
for (const QPointer<Akonadi::Job> &job : akonadiJobsInFlight) {
if (!job.isNull()) {
job.data()->kill();
}
......
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