diff options
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h index e0235603..a208154c 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -34,13 +34,13 @@ struct BINARYNINJAUIAPI SelectionInfoForXref // At any given time, at most one of these four should be true. bool addrValid, typeValid, typeFieldValid, localVarValid; - BNFunctionGraphType ilSource; + BNFunctionGraphType ilSource = InvalidILViewType; - uint64_t start; - uint64_t end; + uint64_t start = 0; + uint64_t end = 0; BinaryNinja::QualifiedName type; - uint64_t offset; + uint64_t offset = 0; BinaryNinja::Variable var; @@ -48,6 +48,8 @@ struct BINARYNINJAUIAPI SelectionInfoForXref FunctionRef func; ArchitectureRef arch; + SelectionInfoForXref() : addrValid(false), typeValid(false), typeFieldValid(false), localVarValid(false) { } + bool operator==(const SelectionInfoForXref& other) const { if (addrValid && other.addrValid) |
