diff options
author | djudjuu <julfaber@gmail.com> | 2017-05-18 00:22:39 +0800 |
---|---|---|
committer | djudjuu <julfaber@gmail.com> | 2017-05-19 15:51:23 +0800 |
commit | 6316a76ab915e03e02825ce391d3812098c6b682 (patch) | |
tree | fd7cba75d74ecfa137494247b45ec3a36be09ec7 /libsolidity/ast/ASTJsonConverter.h | |
parent | e3583d04f79c5e9ada9914f43711d3b90242dfdc (diff) | |
download | dexon-solidity-6316a76ab915e03e02825ce391d3812098c6b682.tar.gz dexon-solidity-6316a76ab915e03e02825ce391d3812098c6b682.tar.zst dexon-solidity-6316a76ab915e03e02825ce391d3812098c6b682.zip |
testsuite adjustment
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.h')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h index cf62e5f5..3d6035a4 100644 --- a/libsolidity/ast/ASTJsonConverter.h +++ b/libsolidity/ast/ASTJsonConverter.h @@ -139,13 +139,13 @@ private: return _node.id(); } template<class Container> - Json::Value getContainerIds(Container container) + Json::Value getContainerIds(Container const& container) { Json::Value tmp(Json::arrayValue); - for (auto it = container.begin(); it != container.end(); ++it) + for (auto const& element: container) { - solAssert(*it, ""); - tmp.append(nodeId(**it)); + solAssert(element, ""); + tmp.append(nodeId(*element)); } return tmp; } |