1
0
Fork 0

tidy loop

This commit is contained in:
BreadFish64 2018-02-19 17:11:46 -06:00
parent f0f9f34445
commit 165d3e1ab2
1 changed files with 1 additions and 2 deletions

View File

@ -809,8 +809,7 @@ void GMainWindow::OnMenuInstallCIA() {
const auto cia_progress = [&](size_t written, size_t total) { const auto cia_progress = [&](size_t written, size_t total) {
emit UpdateProgress(written, total); emit UpdateProgress(written, total);
}; };
for (int current_index = 0; current_index < filepaths.size(); current_index++) { for (const auto current_path : filepaths) {
current_path = filepaths.at(current_index);
status = Service::AM::InstallCIA(current_path.toStdString(), cia_progress); status = Service::AM::InstallCIA(current_path.toStdString(), cia_progress);
emit CIAInstallReport(status, current_path); emit CIAInstallReport(status, current_path);
} }