From 5769163d4bbdec8a281f8560404d961d71eeafec Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 15 Jul 2022 22:54:22 +0000 Subject: [PATCH] VehicleManager: use with RefBase RefBase with sp<> Bug: 232557259 Test: build Merged-In: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9 Change-Id: Id6b3b7e222980fd0e82b2d94ff2518e92d42a4d9 (cherry picked from commit 3b8e60afa3d2d6b64c25b0c171fac115ac6c107b) --- automotive/vehicle/2.0/default/VehicleService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automotive/vehicle/2.0/default/VehicleService.cpp b/automotive/vehicle/2.0/default/VehicleService.cpp index 12e15f9db3..2968232ed4 100644 --- a/automotive/vehicle/2.0/default/VehicleService.cpp +++ b/automotive/vehicle/2.0/default/VehicleService.cpp @@ -33,7 +33,7 @@ int main(int /* argc */, char* /* argv */ []) { auto store = std::make_unique(); auto connector = std::make_unique(); auto hal = std::make_unique(store.get(), connector.get()); - auto service = std::make_unique(hal.get()); + auto service = android::sp::make(hal.get()); connector->setValuePool(hal->getValuePool()); android::hardware::configureRpcThreadpool(4, true /* callerWillJoin */);