From 0fcbfc01baf4dc8fc42fe9a40033be14808c2c7f Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 5 Jan 2019 18:17:17 +0100 Subject: clazy warnings --- node/listaliasnode.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'node/listaliasnode.cpp') diff --git a/node/listaliasnode.cpp b/node/listaliasnode.cpp index a3d2d09..a15bfbc 100644 --- a/node/listaliasnode.cpp +++ b/node/listaliasnode.cpp @@ -46,25 +46,23 @@ void ListAliasNode::run(ExecutionNode* previous ) QString ListAliasNode::buildList() const { QString result(QObject::tr("List of Alias:\n")); - for(DiceAlias* key: *m_aliasList) + for(auto& key: *m_aliasList) { - result+=QString("%1 : %2 # %3\n").arg(key->getCommand()) - .arg(key->getValue()) - .arg(key->getComment()); + result+=QString("%1 : %2 # %3\n").arg(key->getCommand(),key->getValue(),key->getComment()); } return result; } QString ListAliasNode::toString(bool wl) const { QStringList resultList; - for(DiceAlias* key: *m_aliasList) + for(auto& key: *m_aliasList) { resultList << "{" <getCommand() << key->getValue()<< "}"; } if(wl) { - return QString("%1 [label=\"ListAliasNode %2\"]").arg(m_id).arg(resultList.join(",")); + return QString("%1 [label=\"ListAliasNode %2\"]").arg(m_id, resultList.join(",")); } else { -- cgit v1.2.3-70-g09d2