diff options
author | Mathias Baumann <marenz@supradigital.org> | 2018-12-11 02:02:39 +0800 |
---|---|---|
committer | Mathias Baumann <marenz@supradigital.org> | 2018-12-11 02:02:39 +0800 |
commit | 2f6dc2e773148f63f4e2b9d9b3f9bb7eb092fde8 (patch) | |
tree | 690b5cc720bb114ec614b74379b8551a8abf5c17 /libdevcore/IndentedWriter.cpp | |
parent | 871ea22bb9158e23254406d21673cfbeda2d7138 (diff) | |
download | dexon-solidity-2f6dc2e773148f63f4e2b9d9b3f9bb7eb092fde8.tar.gz dexon-solidity-2f6dc2e773148f63f4e2b9d9b3f9bb7eb092fde8.tar.zst dexon-solidity-2f6dc2e773148f63f4e2b9d9b3f9bb7eb092fde8.zip |
Replace push_back with emplace_back where it makes sense
Diffstat (limited to 'libdevcore/IndentedWriter.cpp')
-rw-r--r-- | libdevcore/IndentedWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdevcore/IndentedWriter.cpp b/libdevcore/IndentedWriter.cpp index 96aaf0fa..1a85957b 100644 --- a/libdevcore/IndentedWriter.cpp +++ b/libdevcore/IndentedWriter.cpp @@ -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() |