File.cpp: Make var ref instead of copy
This commit is contained in:
+1
-1
@@ -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 == "..")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user