Add const and ref for loops

This commit is contained in:
scribam 2017-11-30 21:55:26 +01:00 committed by Ivan
parent 3aefd14b3d
commit b4a97c99d8
5 changed files with 15 additions and 19 deletions

View file

@ -484,7 +484,7 @@ void main_window::InstallPup(const QString& dropPath)
// Run asynchronously
scope_thread worker("Firmware Installer", [&]
{
for (auto updatefilename : updatefilenames)
for (const auto& updatefilename : updatefilenames)
{
if (progress == -1) break;
@ -566,7 +566,7 @@ void main_window::DecryptSPRXLibraries()
LOG_NOTICE(GENERAL, "Decrypting SPRX libraries...");
for (QString& module : modules)
for (const QString& module : modules)
{
std::string prx_path = sstr(module);
const std::string& prx_dir = fs::get_parent_dir(prx_path);