diff --git a/tools/aapt2/ResourceValues.h b/tools/aapt2/ResourceValues.h index d11b013f14d5c..d903b7e1b8b39 100644 --- a/tools/aapt2/ResourceValues.h +++ b/tools/aapt2/ResourceValues.h @@ -154,18 +154,18 @@ struct BaseItem : public Item { // A reference can be symbolic (with the name set to a valid resource name) or be // numeric (the id is set to a valid resource ID). struct Reference : public TransformableItem> { - enum class Type { + enum class Type : uint8_t { kResource, kAttribute, }; Maybe name; Maybe id; + std::optional type_flags; Reference::Type reference_type; bool private_reference = false; bool is_dynamic = false; - std::optional type_flags; - bool allow_raw; + bool allow_raw = false; Reference(); explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);