mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Correct use of emplace_back
This commit is contained in:
parent
1709b2924b
commit
cf08c9b255
@ -1388,7 +1388,7 @@ void ProtoConverter::visit(Statement const& _x)
|
||||
|
||||
void ProtoConverter::openBlockScope()
|
||||
{
|
||||
m_scopeFuncs.emplace_back(vector<string>{});
|
||||
m_scopeFuncs.emplace_back();
|
||||
|
||||
// Create new block scope inside current function scope
|
||||
if (m_inFunctionDef)
|
||||
@ -1409,9 +1409,9 @@ void ProtoConverter::openBlockScope()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_globalVars.emplace_back(vector<string>{});
|
||||
m_globalVars.emplace_back();
|
||||
if (m_inForInitScope && m_forInitScopeExtEnabled)
|
||||
m_globalForLoopInitVars.emplace_back(vector<string>{});
|
||||
m_globalForLoopInitVars.emplace_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user