diff options
| author | 2016-04-25 23:45:16 -0400 | |
|---|---|---|
| committer | 2016-04-25 23:48:34 -0400 | |
| commit | 4e286be1fcd3341cd5b790160c3e372e159caf30 (patch) | |
| tree | 54b4202e2186cc2844e22e0d2f8df93c7425f5e0 /src | |
| parent | KviOptions: more capitalization (diff) | |
| download | KVIrc-4e286be1fcd3341cd5b790160c3e372e159caf30.tar.gz KVIrc-4e286be1fcd3341cd5b790160c3e372e159caf30.tar.bz2 KVIrc-4e286be1fcd3341cd5b790160c3e372e159caf30.zip | |
libkvifile: Use for range loop
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/file/libkvifile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index 8220e74bf..46e256e0d 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -621,9 +621,9 @@ static bool file_kvs_fnc_allSizes(KviKvsModuleFunctionCall * c) if(!sl.isEmpty()) { int iIdx = 0; - for(QStringList::Iterator it = sl.begin(); it != sl.end(); ++it) + for(auto& it : sl) { - szFile = szDir + (*it); + szFile = szDir + it; QFileInfo f(szFile); pArray->set(iIdx,new KviKvsVariant((kvs_int_t)f.size())); iIdx++; @@ -793,9 +793,9 @@ static bool file_kvs_fnc_ls(KviKvsModuleFunctionCall * c) if(!sl.isEmpty()) { int iIdx = 0; - for(QStringList::Iterator it = sl.begin(); it != sl.end(); ++it) + for(auto& it : sl) { - pArray->set(iIdx,new KviKvsVariant(*it)); + pArray->set(iIdx,new KviKvsVariant(it)); iIdx++; } } |
