From 7806681792158827908432430454031547770521 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 8 May 2024 17:03:42 -0400 Subject: Stack view: Make constant base offset per-function --- ui/stackview.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ui/stackview.h') diff --git a/ui/stackview.h b/ui/stackview.h index d198ff4d..4837f9b3 100644 --- a/ui/stackview.h +++ b/ui/stackview.h @@ -199,8 +199,6 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View size_t m_tokenIndex; bool m_needFirstFocus; - std::optional m_baseOffset; - //! Bind and register all stack view actions. void setupActions(); @@ -283,7 +281,7 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View void setBaseRegister(ArchitectureRef arch, std::optional regName); //! Set the base offset to a constant (or clear on nullopt) - void setBaseOffset(std::optional offset); + void setBaseOffset(FunctionRef func, std::optional offset); //! Override the default event handler so we can have nice tooltips. bool event(QEvent* event) override; -- cgit v1.3.1