From 165d3e1ab2f191277ed8568ba7ef6ef6a6bf567e Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Mon, 19 Feb 2018 17:11:46 -0600 Subject: [PATCH] tidy loop --- src/citra_qt/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 7eef25c48..2c54c1539 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -809,8 +809,7 @@ void GMainWindow::OnMenuInstallCIA() { const auto cia_progress = [&](size_t written, size_t total) { emit UpdateProgress(written, total); }; - for (int current_index = 0; current_index < filepaths.size(); current_index++) { - current_path = filepaths.at(current_index); + for (const auto current_path : filepaths) { status = Service::AM::InstallCIA(current_path.toStdString(), cia_progress); emit CIAInstallReport(status, current_path); }