Merge "Make sure the VehiclePropValue object is initialized" into main am: c61a19bc28

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2871786

Change-Id: I8ee9ab3fe6151bdbd73a9a16926b528d6bb3924a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yu Shan 2023-12-15 20:14:00 +00:00 committed by Automerger Merge Worker
commit eb9c7af3e3

View file

@ -30,7 +30,7 @@ namespace V2_0 {
std::unique_ptr<VehiclePropValue> createVehiclePropValue( std::unique_ptr<VehiclePropValue> createVehiclePropValue(
VehiclePropertyType type, size_t vecSize) { VehiclePropertyType type, size_t vecSize) {
auto val = std::unique_ptr<VehiclePropValue>(new VehiclePropValue); auto val = std::unique_ptr<VehiclePropValue>(new VehiclePropValue());
switch (type) { switch (type) {
case VehiclePropertyType::INT32: // fall through case VehiclePropertyType::INT32: // fall through
case VehiclePropertyType::INT32_VEC: // fall through case VehiclePropertyType::INT32_VEC: // fall through