DiscScrubber: Don't take SFileInfo instances by value

Avoids unnecessary copies.
This commit is contained in:
Lioncash 2017-01-04 20:12:47 -05:00
parent c52d1e735a
commit a93861ab49

View File

@ -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)