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

Port foreach

parent 636bd289
Pipeline #82412 passed with stage
in 4 minutes and 8 seconds
......@@ -328,9 +328,9 @@ void MainWindow::slotDrivesFetchJobFinished(KGAPI2::Job *job)
}
/* Get all items we have received from Google */
KGAPI2::ObjectsList objects = fetchJob->items();
const KGAPI2::ObjectsList objects = fetchJob->items();
Q_FOREACH (const KGAPI2::ObjectPtr &object, objects) {
for (const KGAPI2::ObjectPtr &object : objects) {
const KGAPI2::Drive::FilePtr file = object.dynamicCast<KGAPI2::Drive::File>();
/* Convert the drives to QListWidget item */
......
......@@ -271,9 +271,9 @@ void MainWindow::slotTeamdriveFetchJobFinished(KGAPI2::Job *job)
}
/* Get all items we have received from Google */
KGAPI2::ObjectsList objects = fetchJob->items();
const KGAPI2::ObjectsList objects = fetchJob->items();
Q_FOREACH (const KGAPI2::ObjectPtr &object, objects) {
for (const KGAPI2::ObjectPtr &object : objects) {
const KGAPI2::Drive::FilePtr file = object.dynamicCast<KGAPI2::Drive::File>();
/* Convert the teamdrive to QListWidget item */
......
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