mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
DiscScrubber: Don't take SFileInfo instances by value
Avoids unnecessary copies.
This commit is contained in:
parent
c52d1e735a
commit
a93861ab49
@ -247,7 +247,7 @@ bool DiscScrubber::ParsePartitionData(Partition& partition)
|
||||
partition.header.fst_size);
|
||||
|
||||
// Go through the filesystem and mark entries as used
|
||||
for (SFileInfo file : filesystem->GetFileList())
|
||||
for (const SFileInfo& file : filesystem->GetFileList())
|
||||
{
|
||||
DEBUG_LOG(DISCIO, "%s", file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str());
|
||||
if ((file.m_NameOffset & 0x1000000) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user