summaryrefslogtreecommitdiff
path: root/ui/viewframe.h
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2021-01-23 17:04:33 -0500
committerBrian Potchik <brian@vector35.com>2021-01-23 17:04:33 -0500
commit1dbcc4f54433ec1e4ccaf3d658256d619cd610cc (patch)
tree9b5f884f51cd7984c040bb08d3357950c70868e0 /ui/viewframe.h
parentbbec616bb1d026a83f50a39c6e531faed637e201 (diff)
Add ViewLocation navigatioon support to LinearView.
Diffstat (limited to 'ui/viewframe.h')
-rw-r--r--ui/viewframe.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h
index 47c8cf68..995b46b2 100644
--- a/ui/viewframe.h
+++ b/ui/viewframe.h
@@ -175,6 +175,8 @@ public:
m_viewType(viewType), m_offset(offset), m_ilViewType(ilViewType) { }
ViewLocation(const QString& viewType, uint64_t offset, BNFunctionGraphType ilViewType, size_t instrIndex) : m_valid(true),
m_viewType(viewType), m_offset(offset), m_ilViewType(ilViewType), m_instrIndex(instrIndex) { }
+ ViewLocation(const QString& viewType, FunctionRef function, uint64_t offset, BNFunctionGraphType ilViewType, size_t instrIndex) :
+ m_valid(true), m_viewType(viewType), m_function(function), m_offset(offset), m_ilViewType(ilViewType), m_instrIndex(instrIndex) { }
ViewLocation(FunctionRef function, uint64_t offset, BNFunctionGraphType ilViewType, size_t instrIndex) : m_valid(true),
m_function(function), m_offset(offset), m_ilViewType(ilViewType), m_instrIndex(instrIndex) { }
@@ -185,7 +187,7 @@ public:
size_t getInstrIndex() const { return m_instrIndex; }
FunctionRef getFunction() const { return m_function; }
- void setViewType(QString& viewType) { m_viewType = viewType; }
+ void setViewType(const QString& viewType) { m_viewType = viewType; }
void setOffset(uint64_t offset) { m_offset = offset; }
void setILViewType(BNFunctionGraphType ilViewType) { m_ilViewType = ilViewType; }
void setInstrIndex(uint64_t index) { m_instrIndex = index; }