mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
efficiency, use reference instead of copy
This commit is contained in:
parent
6a91ed0c1c
commit
2a4e8228d7
4
trie.cpp
4
trie.cpp
@ -67,10 +67,10 @@ BOOST_AUTO_TEST_CASE(trie_tests)
|
||||
cnote << i.first;
|
||||
js::mObject& o = i.second.get_obj();
|
||||
vector<pair<string, string>> ss;
|
||||
for (auto i: o["in"].get_array())
|
||||
for (auto& i: o["in"].get_array())
|
||||
{
|
||||
vector<string> values;
|
||||
for (auto s: i.get_array())
|
||||
for (auto& s: i.get_array())
|
||||
values.push_back(s.get_str());
|
||||
|
||||
assert(values.size() == 2);
|
||||
|
Loading…
Reference in New Issue
Block a user