Replace push_back with emplace_back where it makes sense

This commit is contained in:
Mathias Baumann committed 2018-12-10 19:02:39 +01:00
1 parent 871ea22bb9
commit 2f6dc2e773
15 files changed
+68 -75

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ void ControlFlowGraph::splitBlocks()
m_blocks[id].begin = index;
}
if (item.type() == PushTag)
m_blocks[id].pushedTags.push_back(BlockId(item.data()));
m_blocks[id].pushedTags.emplace_back(item.data());
if (SemanticInformation::altersControlFlow(item))
{
m_blocks[id].end = index + 1;