diff options
| author | 2016-04-26 08:16:30 +0100 | |
|---|---|---|
| committer | 2016-04-26 08:17:33 +0100 | |
| commit | 0f5af3bfafadeac1b7c8ebd5af07ff2ab19afb3f (patch) | |
| tree | f10e0d377aac3894c40422267f6ac593403a537d /src/modules/file | |
| parent | Fix completer in KVS class lineedit (diff) | |
| download | KVIrc-0f5af3bfafadeac1b7c8ebd5af07ff2ab19afb3f.tar.gz KVIrc-0f5af3bfafadeac1b7c8ebd5af07ff2ab19afb3f.tar.bz2 KVIrc-0f5af3bfafadeac1b7c8ebd5af07ff2ab19afb3f.zip | |
Improve foreach loop
@staticfox
Diffstat (limited to 'src/modules/file')
| -rw-r--r-- | src/modules/file/libkvifile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index 46e256e0d..0853b2c8e 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -621,7 +621,7 @@ static bool file_kvs_fnc_allSizes(KviKvsModuleFunctionCall * c) if(!sl.isEmpty()) { int iIdx = 0; - for(auto& it : sl) + for(const auto& it : sl) { szFile = szDir + it; QFileInfo f(szFile); @@ -793,7 +793,7 @@ static bool file_kvs_fnc_ls(KviKvsModuleFunctionCall * c) if(!sl.isEmpty()) { int iIdx = 0; - for(auto& it : sl) + for(const auto& it : sl) { pArray->set(iIdx,new KviKvsVariant(it)); iIdx++; |
