mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix GraphEdge initialization in DisassemblerGraphView (#1436)
This commit is contained in:
parent
3e645980fc
commit
cdca7bdc3f
@ -249,13 +249,13 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
db.false_path = RVA_INVALID;
|
||||
if (block_fail) {
|
||||
db.false_path = block_fail;
|
||||
gb.edges.push_back({block_fail});
|
||||
gb.edges.emplace_back(block_fail);
|
||||
}
|
||||
if (block_jump) {
|
||||
if (block_fail) {
|
||||
db.true_path = block_jump;
|
||||
}
|
||||
gb.edges.push_back({block_jump});
|
||||
gb.edges.emplace_back(block_jump);
|
||||
}
|
||||
|
||||
QJsonObject switchOp = block["switchop"].toObject();
|
||||
@ -268,7 +268,7 @@ void DisassemblerGraphView::loadCurrentGraph()
|
||||
if (!ok) {
|
||||
continue;
|
||||
}
|
||||
gb.edges.push_back({caseJump});
|
||||
gb.edges.emplace_back(caseJump);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,8 @@ public:
|
||||
struct GraphEdge {
|
||||
ut64 target;
|
||||
QPolygonF polyline;
|
||||
|
||||
explicit GraphEdge(ut64 target): target(target) {}
|
||||
};
|
||||
|
||||
struct GraphBlock {
|
||||
|
Loading…
Reference in New Issue
Block a user