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

Commit 7e04a062 authored by Myles Watson's avatar Myles Watson
Browse files

PDL: Allow parent packets with no parameters

Bug: 138260498
Test: bluetooth_packet_parser_test
Change-Id: I75e7c3a5d5bc653cc5df29ec406238cf9adf8cfc
parent 2b1abb30
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -422,7 +422,11 @@ void PacketDef::GenBuilderConstructor(std::ostream& s) const {
      s << ", ";
    }
  }
  if (params.size() > 0 || parent_constraints_.size() > 0) {
    s << ") :";
  } else {
    s << ")";
  }

  // Get the list of parent params to call the parent constructor with.
  FieldList parent_params;