diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-02-12 21:48:34 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-02-12 21:48:34 -0500 |
| commit | bba715aff1565426fba31e2f39c438f37921c303 (patch) | |
| tree | 9f1a0fd2b15d5d8bcc5d02a90449f0a7a3d6abc3 /functiongraphblock.cpp | |
| parent | 79b5bdcf42f6abf1c8b2c4bda4c30b41319c4aa5 (diff) | |
| parent | c352fec480dde5321a0c52850be1bb8a3df9bbd3 (diff) | |
Merge branch 'dev' into fpu
Diffstat (limited to 'functiongraphblock.cpp')
| -rw-r--r-- | functiongraphblock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functiongraphblock.cpp b/functiongraphblock.cpp index 20b2515b..06a35eee 100644 --- a/functiongraphblock.cpp +++ b/functiongraphblock.cpp @@ -89,10 +89,12 @@ const vector<DisassemblyTextLine>& FunctionGraphBlock::GetLines() BNDisassemblyTextLine* lines = BNGetFunctionGraphBlockLines(m_object, &count); vector<DisassemblyTextLine> result; + result.reserve(count); for (size_t i = 0; i < count; i++) { DisassemblyTextLine line; line.addr = lines[i].addr; + line.tokens.reserve(lines[i].count); for (size_t j = 0; j < lines[i].count; j++) { InstructionTextToken token; @@ -125,6 +127,7 @@ const vector<FunctionGraphEdge>& FunctionGraphBlock::GetOutgoingEdges() BNFunctionGraphEdge* edges = BNGetFunctionGraphBlockOutgoingEdges(m_object, &count); vector<FunctionGraphEdge> result; + result.reserve(count); for (size_t i = 0; i < count; i++) { FunctionGraphEdge edge; |
