summaryrefslogtreecommitdiffstats
path: root/torrentparser.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2022-04-16 11:52:03 +0200
committerArno <arno@disconnect.de>2022-04-16 11:52:03 +0200
commitc6b7fe4a6294e23bf04ff71799e5474ebe1d7875 (patch)
treecbea998625e6bf4ccd7a5f91e6bd199a3137faf3 /torrentparser.cpp
parentde289b42cda270ddf5cab1a6cc8cab970c774af4 (diff)
downloadShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.tar.gz
ShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.tar.bz2
ShemovCleaner-c6b7fe4a6294e23bf04ff71799e5474ebe1d7875.zip
Another round of Clang fixes...
Diffstat (limited to 'torrentparser.cpp')
-rw-r--r--torrentparser.cpp4
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();