mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace push_back with emplace_back where it makes sense
This commit is contained in:
@@ -36,7 +36,7 @@ string IndentedWriter::format() const
|
||||
void IndentedWriter::newLine()
|
||||
{
|
||||
if (!m_lines.back().contents.empty())
|
||||
m_lines.push_back({ string(), m_lines.back().indentation });
|
||||
m_lines.emplace_back(Line{string(), m_lines.back().indentation});
|
||||
}
|
||||
|
||||
void IndentedWriter::indent()
|
||||
|
||||
Reference in New Issue
Block a user