mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
File.cpp: Make var ref instead of copy
This commit is contained in:
parent
2bab3afae0
commit
7eccbecb2f
1 changed files with 1 additions and 1 deletions
|
@ -1639,7 +1639,7 @@ u64 fs::get_dir_size(const std::string& path, u64 rounding_alignment)
|
||||||
{
|
{
|
||||||
u64 result = 0;
|
u64 result = 0;
|
||||||
|
|
||||||
for (const auto entry : dir(path))
|
for (const auto& entry : dir(path))
|
||||||
{
|
{
|
||||||
if (entry.name == "." || entry.name == "..")
|
if (entry.name == "." || entry.name == "..")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue