From c5e3fb423fd144faa2db8f2bb156adba6c003d39 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Mon, 2 Nov 2020 23:20:43 +0100 Subject: Change some for loops to use refs, prefer range loop where possible. --- src/shared/fileentry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/fileentry.cpp') diff --git a/src/shared/fileentry.cpp b/src/shared/fileentry.cpp index 559eae64..5be9a9dc 100644 --- a/src/shared/fileentry.cpp +++ b/src/shared/fileentry.cpp @@ -192,7 +192,7 @@ bool FileEntry::isFromArchive(std::wstring archiveName) const return true; } - for (auto alternative : m_Alternatives) { + for (const auto& alternative : m_Alternatives) { if (alternative.archive().name().compare(archiveName) == 0) { return true; } -- cgit v1.3.1