diff options
| author | 2019-01-05 18:17:17 +0100 | |
|---|---|---|
| committer | 2019-01-05 18:17:17 +0100 | |
| commit | 0fcbfc01baf4dc8fc42fe9a40033be14808c2c7f (patch) | |
| tree | aa3eac1c1d87d49d133a28916d0c49b901af5578 /node/listaliasnode.cpp | |
| parent | 0ead8d42d93ee5d91519f006a84a942109bf4f36 (diff) | |
| download | OneRoll-0fcbfc01baf4dc8fc42fe9a40033be14808c2c7f.tar.gz OneRoll-0fcbfc01baf4dc8fc42fe9a40033be14808c2c7f.zip | |
clazy warnings
Diffstat (limited to 'node/listaliasnode.cpp')
| -rw-r--r-- | node/listaliasnode.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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 << "{" <<key->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 { |