summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn C. Allwein <5902494+johnnyapol@users.noreply.github.com>2020-04-18 19:14:35 -0400
committerJohn C. Allwein <git@johnnyapol.me>2020-04-19 14:36:42 -0400
commit5c921589f1db2acb9691b3077fddf6a9d7336693 (patch)
treec4801cdd7216b3f30c16e55dee059773eaef5b24
parent130e1263b688408ad27604093a587f3dde571f0c (diff)
downloadMultiMC-5c921589f1db2acb9691b3077fddf6a9d7336693.tar
MultiMC-5c921589f1db2acb9691b3077fddf6a9d7336693.tar.gz
MultiMC-5c921589f1db2acb9691b3077fddf6a9d7336693.tar.lz
MultiMC-5c921589f1db2acb9691b3077fddf6a9d7336693.tar.xz
MultiMC-5c921589f1db2acb9691b3077fddf6a9d7336693.zip
NOISSUE fix compiling of api/logic/Version.cpp
-Wrange-loop-construct triggers this error in clang
-rw-r--r--api/logic/Version.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/Version.cpp b/api/logic/Version.cpp
index 42eac669..6392a50f 100644
--- a/api/logic/Version.cpp
+++ b/api/logic/Version.cpp
@@ -78,7 +78,7 @@ void Version::parse()
// FIXME: this is bad. versions can contain a lot more separators...
QStringList parts = m_string.split('.');
- for (const auto part : parts)
+ for (const auto &part : parts)
{
m_sections.append(Section(part));
}