aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-11 02:22:02 +0800
committerGitHub <noreply@github.com>2018-12-11 02:22:02 +0800
commitbaaefb4b422fb22a89af08b79e6595e7859d2323 (patch)
tree1a04773f8ac16ee5722446009da4494bf3a10ebb /libdevcore
parent5355380f80eeb9fac49dd28a32b08ba88e662c87 (diff)
parentcb935fe9086b60295f97c5b8a5fd0ea8245d145e (diff)
downloaddexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar.gz
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar.bz2
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar.lz
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar.xz
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.tar.zst
dexon-solidity-baaefb4b422fb22a89af08b79e6595e7859d2323.zip
Merge pull request #5619 from ethereum/cleanup-abc
Some code cleanup
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/IndentedWriter.cpp2
-rw-r--r--libdevcore/StringUtils.cpp2
2 files changed, 2 insertions, 2 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()
diff --git a/libdevcore/StringUtils.cpp b/libdevcore/StringUtils.cpp
index 50bf7cce..196ac8f7 100644
--- a/libdevcore/StringUtils.cpp
+++ b/libdevcore/StringUtils.cpp
@@ -91,7 +91,7 @@ string dev::quotedAlternativesList(vector<string> const& suggestions)
vector<string> quotedSuggestions;
for (auto& suggestion: suggestions)
- quotedSuggestions.push_back("\"" + suggestion + "\"");
+ quotedSuggestions.emplace_back("\"" + suggestion + "\"");
return joinHumanReadable(quotedSuggestions, ", ", " or ");
}