From 1dbcc4f54433ec1e4ccaf3d658256d619cd610cc Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sat, 23 Jan 2021 17:04:33 -0500 Subject: Add ViewLocation navigatioon support to LinearView. --- ui/viewframe.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/viewframe.h') 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; } -- cgit v1.3.1