aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/libkvisystem.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
committerGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
commitfe375f69972cd912739c0d68fa4951d35de90e5e (patch)
tree71bd2c2b59d6be62d7c18588a417e5aa39ab233c /src/modules/system/libkvisystem.cpp
parentlibkvidcc: fix $dcc.currentSpeed documentation add missing @short and fix rig... (diff)
parentApply clang-tidy: modernize-loop-convert (diff)
downloadKVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.gz
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.bz2
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.zip
Merge pull request #1962 from DarthGandalf/modernize
Apply several fixes of clang-tidy
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
-rw-r--r--src/modules/system/libkvisystem.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp
index 9404b5a26..44258827d 100644
--- a/src/modules/system/libkvisystem.cpp
+++ b/src/modules/system/libkvisystem.cpp
@@ -514,9 +514,9 @@ static bool system_kvs_fnc_dbus(KviKvsModuleFunctionCall * c)
QList<QVariant> ds;
- for(QStringList::Iterator it = parms.begin(); it != parms.end(); ++it)
+ for(auto & parm : parms)
{
- KviCString tmp = *it;
+ KviCString tmp = parm;
if(tmp.isEmpty())
{
@@ -605,9 +605,9 @@ static bool system_kvs_fnc_dbus(KviKvsModuleFunctionCall * c)
QStringList csl(v.toStringList());
KviKvsArray * arry = new KviKvsArray();
int idx = 0;
- for(QStringList::Iterator iter = csl.begin(); iter != csl.end(); ++iter)
+ for(auto & iter : csl)
{
- arry->set(idx, new KviKvsVariant(*iter));
+ arry->set(idx, new KviKvsVariant(iter));
idx++;
}
c->returnValue()->setArray(arry);