mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-15 04:29:42 +00:00
[ADT] Use default member initialization in OptionalStorage (NFC)
This commit is contained in:
parent
e24384b506
commit
f072603685
@ -62,12 +62,12 @@ class OptionalStorage {
|
||||
char empty;
|
||||
T value;
|
||||
};
|
||||
bool hasVal;
|
||||
bool hasVal = false;
|
||||
|
||||
public:
|
||||
~OptionalStorage() { reset(); }
|
||||
|
||||
constexpr OptionalStorage() noexcept : empty(), hasVal(false) {}
|
||||
constexpr OptionalStorage() noexcept : empty() {}
|
||||
|
||||
constexpr OptionalStorage(OptionalStorage const &other) : OptionalStorage() {
|
||||
if (other.hasValue()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user