summaryrefslogtreecommitdiff
path: root/flowgraphnode.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-12-14 07:26:14 -0500
committerPeter LaFosse <peter@vector35.com>2018-12-14 07:26:14 -0500
commit10a89e67ab3f3129570382f3fa4c500e77d8dab6 (patch)
tree5ad7cd9f8a633a57c3ee50965270dc280e8dc1c2 /flowgraphnode.cpp
parent231afab8b0ba6c8c9eff879681c52724b6688c18 (diff)
fixes for get_instruction_lines and code cleanup
Diffstat (limited to 'flowgraphnode.cpp')
-rw-r--r--flowgraphnode.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp
index 649e4941..911d4efc 100644
--- a/flowgraphnode.cpp
+++ b/flowgraphnode.cpp
@@ -110,12 +110,11 @@ void FlowGraphNode::SetLines(const vector<DisassemblyTextLine>& lines)
BNDisassemblyTextLine* buf = new BNDisassemblyTextLine[lines.size()];
for (size_t i = 0; i < lines.size(); i++)
{
- const DisassemblyTextLine& line = lines[i];
- buf[i].addr = line.addr;
- buf[i].instrIndex = line.instrIndex;
- buf[i].highlight = line.highlight;
- buf[i].tokens = InstructionTextToken::CreateInstructionTextTokenList(line.tokens);
- buf[i].count = line.tokens.size();
+ buf[i].addr = lines[i].addr;
+ buf[i].instrIndex = lines[i].instrIndex;
+ buf[i].highlight = lines[i].highlight;
+ buf[i].tokens = InstructionTextToken::CreateInstructionTextTokenList(lines[i].tokens);
+ buf[i].count = lines[i].tokens.size();
}
BNSetFlowGraphNodeLines(m_object, buf, lines.size());