mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
MultiUseYulFunctionCollector::requestedFunctions(): Refactor the loop to use destructuring
This commit is contained in:
parent
e75e3fc2e3
commit
8bacf03ffe
@ -32,11 +32,11 @@ using namespace solidity::frontend;
|
||||
string MultiUseYulFunctionCollector::requestedFunctions()
|
||||
{
|
||||
string result;
|
||||
for (auto const& f: m_requestedFunctions)
|
||||
for (auto const& [name, code]: m_requestedFunctions)
|
||||
{
|
||||
solAssert(f.second != "<<STUB<<", "");
|
||||
solAssert(code != "<<STUB<<", "");
|
||||
// std::map guarantees ascending order when iterating through its keys.
|
||||
result += f.second;
|
||||
result += code;
|
||||
}
|
||||
m_requestedFunctions.clear();
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user