aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/ASTJsonConverter.h8
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;
}