Commit c07a8603 authored by Laurent Montel's avatar Laurent Montel 😁

Port some foreach

parent cea38be6
......@@ -96,7 +96,7 @@ void SslServer::incomingConnection(qintptr handle)
void SslServer::sslErrors(const QList<QSslError> &errors)
{
foreach (const QSslError &error, errors) {
for (const QSslError &error : errors) {
qWarning() << "Received ssl error: " << error.errorString();
}
QSslSocket *socket = qobject_cast<QSslSocket *>(QObject::sender());
......
......@@ -105,7 +105,7 @@ private Q_SLOTS:
KIMAP::SearchJob *job = new KIMAP::SearchJob(&session);
job->setUidBased(uidbased);
job->setSearchLogic(searchLogic);
Q_FOREACH (const SearchCriteriaValuePair &pair, searchCriteria) {
for (const SearchCriteriaValuePair &pair : qAsConst(searchCriteria)) {
if (pair.second.isEmpty()) {
job->addSearchCriteria(pair.first);
} else {
......
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