Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea15d442 authored by Ryan Mitchell's avatar Ryan Mitchell Committed by Android (Google) Code Review
Browse files

Merge "Fix uninitialized macro reference member" into sc-dev

parents 646ce7ee a2b4fcde
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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<Reference, BaseItem<Reference>> {
  enum class Type {
  enum class Type : uint8_t {
    kResource,
    kAttribute,
  };

  Maybe<ResourceName> name;
  Maybe<ResourceId> id;
  std::optional<uint32_t> type_flags;
  Reference::Type reference_type;
  bool private_reference = false;
  bool is_dynamic = false;
  std::optional<uint32_t> type_flags;
  bool allow_raw;
  bool allow_raw = false;

  Reference();
  explicit Reference(const ResourceNameRef& n, Type type = Type::kResource);