Commit 062a87ab authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Use foreach on Qt containers

parent 39a2377f
......@@ -114,7 +114,7 @@ QUrl GDriveHelper::convertFromGDocs(KGAPI2::Drive::FilePtr &file)
}
const auto exportLinks = file->exportLinks();
for (const QString &targetMimeType : GDriveHelper::ConversionMap[originalMimeType]) {
Q_FOREACH (const QString &targetMimeType, GDriveHelper::ConversionMap[originalMimeType]) {
if (exportLinks.contains(targetMimeType)) {
file->setMimeType(targetMimeType);
file->setTitle(file->title() + GDriveHelper::ExtensionsMap[targetMimeType]);
......
......@@ -261,7 +261,7 @@ void KIOGDrive::listAccounts()
return;
}
for (const QString &account : accounts) {
Q_FOREACH (const QString &account, accounts) {
const KIO::UDSEntry entry = AccountManager::accountToUDSEntry(account);
listEntry(entry);
}
......
Supports Markdown
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