mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Add const and ref for loops
This commit is contained in:
parent
3aefd14b3d
commit
b4a97c99d8
5 changed files with 15 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue