diff options
author | Arno <arno@disconnect.de> | 2022-04-16 11:52:03 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2022-04-16 11:52:03 +0200 |
commit | c6b7fe4a6294e23bf04ff71799e5474ebe1d7875 (patch) | |
tree | cbea998625e6bf4ccd7a5f91e6bd199a3137faf3 /torrentparser.cpp | |
parent | de289b42cda270ddf5cab1a6cc8cab970c774af4 (diff) | |
download | ShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.tar.gz ShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.tar.bz2 ShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.zip |
Another round of Clang fixes...
Diffstat (limited to 'torrentparser.cpp')
-rw-r--r-- | torrentparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/torrentparser.cpp b/torrentparser.cpp index f0326d4..547992e 100644 --- a/torrentparser.cpp +++ b/torrentparser.cpp @@ -22,7 +22,7 @@ const QList<QVariant> TorrentParser::parse(){ const QStringList TorrentParser::files(QList<QVariant> data){ QStringList retval; - for(QVariant cur : data){ + for(const auto &cur : data){ if(cur.canConvert<QVariantHash>()){ QVariantHash h = cur.toHash(); QHash<QString, QVariant>::const_iterator it = h.constBegin(); @@ -31,7 +31,7 @@ const QStringList TorrentParser::files(QList<QVariant> data){ QVariantHash infoD = it.value().toHash(); if(infoD.contains("files")){ QVariantList fileList = infoD.value("files").toList(); - for(QVariant fn : fileList){ + for(const auto &fn : fileList){ QVariantHash e = fn.toHash(); QVariantList path = e.value("path").toList(); retval << path.last().toString(); |