1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 20:22:30 +01:00

File.cpp: Make var ref instead of copy

This commit is contained in:
JohnHolmesII 2020-02-22 14:31:44 -08:00 committed by Megamouse
parent 2bab3afae0
commit 7eccbecb2f

View File

@ -1639,7 +1639,7 @@ u64 fs::get_dir_size(const std::string& path, u64 rounding_alignment)
{
u64 result = 0;
for (const auto entry : dir(path))
for (const auto& entry : dir(path))
{
if (entry.name == "." || entry.name == "..")
{