summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2024-01-24 22:45:57 +0000
committer Matt Buckley <mattbuckley@google.com> 2024-01-24 22:45:57 +0000
commitf4e95dc570ffab8314f1808f276c66b37e877b2f (patch)
tree40edb6f2549e8de881e7adcc00068e44f7eccee5
parent424c520db8acee1655934a8a094c48fb05f83f03 (diff)
Make sure processHalResult moves the value correctly
Bug: 317387260 Test: atest libpowermanager_test libsurfaceflinger_unittest libcompositionengine_test Change-Id: I96560e3c01c79401d7bdbe828f603d760baab5f2
-rw-r--r--services/powermanager/PowerHalController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/powermanager/PowerHalController.cpp b/services/powermanager/PowerHalController.cpp
index c049d7d283..bc178bce8f 100644
--- a/services/powermanager/PowerHalController.cpp
+++ b/services/powermanager/PowerHalController.cpp
@@ -88,7 +88,7 @@ HalResult<T> PowerHalController::processHalResult(HalResult<T>&& result, const c
mConnectedHal = nullptr;
mHalConnector->reset();
}
- return result;
+ return std::move(result);
}
HalResult<void> PowerHalController::setBoost(aidl::android::hardware::power::Boost boost,