diff options
| author | Brian Potchik <brian@vector35.com> | 2018-01-11 17:10:34 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2018-01-11 17:10:34 -0500 |
| commit | 1df49afa5522d73d509d20db9588294fe259085f (patch) | |
| tree | 089a2ff85c527c485a9d8bd7f3b9c6d234f2fa2f /architecture.cpp | |
| parent | bc779f1e0140a933d65926b9af840a80636a6dd4 (diff) | |
API Temporary Object Elimination.
Diffstat (limited to 'architecture.cpp')
| -rw-r--r-- | architecture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/architecture.cpp b/architecture.cpp index 66372bcb..821f4c7b 100644 --- a/architecture.cpp +++ b/architecture.cpp @@ -959,8 +959,8 @@ bool CoreArchitecture::GetInstructionText(const uint8_t* data, uint64_t addr, si for (size_t i = 0; i < count; i++) { - result.push_back(InstructionTextToken(tokens[i].type, tokens[i].context, tokens[i].text, tokens[i].address, - tokens[i].value, tokens[i].size, tokens[i].operand, tokens[i].confidence)); + result.emplace_back(tokens[i].type, tokens[i].context, tokens[i].text, tokens[i].address, + tokens[i].value, tokens[i].size, tokens[i].operand, tokens[i].confidence); } BNFreeInstructionText(tokens, count); |
