Use emplace_* functions where in-place construction is preferable
This commit is contained in:
1 parent
012a4c18ff
commit
e07679114b
12 files changed
+18
-18
No files matched your search
@@ -186,7 +186,7 @@ namespace JitILProfiler
|
||||
static Block& Add(u64 codeHash)
|
||||
{
|
||||
const u32 _blockIndex = (u32)blocks.size();
|
||||
blocks.push_back(Block());
|
||||
blocks.emplace_back();
|
||||
Block& block = blocks.back();
|
||||
block.index = _blockIndex;
|
||||
block.codeHash = codeHash;
|
||||
|
||||
Reference in new issue
Block a user