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

Use qAsConst

parent 89e36914
......@@ -209,15 +209,15 @@ void Ispdb::parseResult(const QDomDocument &document)
qCDebug(ACCOUNTWIZARD_LOG) << "Domains" << mDomains;
qCDebug(ACCOUNTWIZARD_LOG) << "Name" << mDisplayName << "(" << mDisplayShortName << ")";
qCDebug(ACCOUNTWIZARD_LOG) << "Imap servers:";
foreach (const Server &s, mImapServers) {
for (const Server &s : qAsConst(mImapServers)) {
qCDebug(ACCOUNTWIZARD_LOG) << s.hostname << s.port << s.socketType << s.username << s.authentication;
}
qCDebug(ACCOUNTWIZARD_LOG) << "pop3 servers:";
foreach (const Server &s, mPop3Servers) {
for (const Server &s : qAsConst(mPop3Servers)) {
qCDebug(ACCOUNTWIZARD_LOG) << s.hostname << s.port << s.socketType << s.username << s.authentication;
}
qCDebug(ACCOUNTWIZARD_LOG) << "smtp servers:";
foreach (const Server &s, mSmtpServers) {
for (const Server &s : qAsConst(mSmtpServers)) {
qCDebug(ACCOUNTWIZARD_LOG) << s.hostname << s.port << s.socketType << s.username << s.authentication;
}
// end section.
......
......@@ -57,7 +57,7 @@ void LoadPage::enterPageNext()
m_action = new Kross::Action(this, QStringLiteral("AccountWizard"));
typedef QPair<QObject *, QString> ObjectStringPair;
foreach (const ObjectStringPair &exportedObject, m_exportedObjects) {
for (const ObjectStringPair &exportedObject : qAsConst(m_exportedObjects)) {
m_action->addQObject(exportedObject.first, exportedObject.second);
}
......
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