From 004afdfbb47d91346191ab63be1d5a5d625704d4 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sun, 24 Nov 2024 20:55:04 -0500 Subject: Properly maintain selections in the tags list. --- binaryview.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'binaryview.cpp') diff --git a/binaryview.cpp b/binaryview.cpp index d88c4548..f0969e9f 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -950,6 +950,24 @@ TagReference::TagReference(const BNTagReference& ref) } +bool TagReference::EqualsByData(const TagReference& other) const +{ + if (refType != other.refType) + return false; + if (autoDefined != other.autoDefined) + return false; + if (addr != other.addr) + return false; + if (func != other.func) + return false; + if (arch != other.arch) + return false; + if (tag->GetData() != other.tag->GetData()) + return false; + return true; +} + + bool TagReference::operator==(const TagReference& other) const { if (refType != other.refType) -- cgit v1.3.1