diff options
| author | Glenn Smith <glenn@vector35.com> | 2026-05-06 19:27:05 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2026-05-07 12:23:31 -0400 |
| commit | 6326257649265907739832337316637601819417 (patch) | |
| tree | 182fb52f84c42c24399c04aac2013c9bb05889e3 | |
| parent | 4215166558981845825850843420447910917304 (diff) | |
Make Metadata::operator== const
| -rw-r--r-- | binaryninjaapi.h | 2 | ||||
| -rw-r--r-- | metadata.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 6cd7eaf2..504c591c 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -2218,7 +2218,7 @@ namespace BinaryNinja { explicit Metadata(MetadataType type); virtual ~Metadata() {} - bool operator==(const Metadata& rhs); + bool operator==(const Metadata& rhs) const; Ref<Metadata> operator[](const std::string& key); Ref<Metadata> operator[](size_t idx); diff --git a/metadata.cpp b/metadata.cpp index 1905daf4..659c919e 100644 --- a/metadata.cpp +++ b/metadata.cpp @@ -126,7 +126,7 @@ Metadata::Metadata(const std::vector<std::string>& data) delete[] list; } -bool Metadata::operator==(const Metadata& rhs) +bool Metadata::operator==(const Metadata& rhs) const { return BNMetadataIsEqual(m_object, rhs.m_object); } |
