From 7eccbecb2f619181ea7095b1ff1e56f286d6781d Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Sat, 22 Feb 2020 14:31:44 -0800 Subject: [PATCH] File.cpp: Make var ref instead of copy --- Utilities/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/File.cpp b/Utilities/File.cpp index 65731286cf..42e0448de5 100644 --- a/Utilities/File.cpp +++ b/Utilities/File.cpp @@ -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 == "..") {