Improve A2DP Bits handling

Test: m
Bug: 316413963
Flag: EXEMPT small improvement non flaggable
Change-Id: I5b6a6bbb130f9c9222373e3927d23908d1f8a351
This commit is contained in:
Antoine SOULIER 2023-12-14 22:39:00 +00:00
parent 141967eed6
commit e55691fdf1

View file

@ -23,7 +23,8 @@ class A2dpBits {
uint8_t* data_;
public:
A2dpBits(const std::vector<uint8_t>& vector) : cdata_(vector.data()) {}
A2dpBits(const std::vector<uint8_t>& vector)
: cdata_(vector.data()), data_(nullptr) {}
A2dpBits(std::vector<uint8_t>& vector)
: cdata_(vector.data()), data_(vector.data()) {}