mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
rbutil: Use references to avoid creating temporary objects.
Get rid of some unnecessary object creating / copying by using references. Change-Id: Ia44e34f6f66d230caa9af7ef7c0eca73be12de2a
This commit is contained in:
parent
8c55ce62b9
commit
62108a9613
14 changed files with 24 additions and 25 deletions
|
|
@ -102,7 +102,7 @@ void Uninstaller::uninstall(void)
|
|||
}
|
||||
// for speed reasons update log file only at the end.
|
||||
installlog.beginGroup(uninstallSections.at(i));
|
||||
for (auto file : deletedItems)
|
||||
for (const auto& file : deletedItems)
|
||||
{
|
||||
installlog.remove(file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue