summaryrefslogtreecommitdiff
path: root/src/shared/fileentry.cpp
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-11-02 23:20:43 +0100
committerAL <26797547+Al12rs@users.noreply.github.com>2020-11-02 23:20:43 +0100
commitc5e3fb423fd144faa2db8f2bb156adba6c003d39 (patch)
tree823e38d3f0af39be96a4a2b2d8264b7c851ed08b /src/shared/fileentry.cpp
parent4814ba626e80f5137076556b687e59e6bbd8be34 (diff)
Change some for loops to use refs, prefer range loop where possible.
Diffstat (limited to 'src/shared/fileentry.cpp')
-rw-r--r--src/shared/fileentry.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}