summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputManager.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2024-02-05 18:27:36 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-02-05 18:27:36 +0000
commitf193ec59d623d0a26f3b0603a672076bf33fda70 (patch)
tree2107c16634642d3f4949cf351af3842b875927ba /services/inputflinger/InputManager.cpp
parent10aa134ba72544da4e8357722f31c23c7929b317 (diff)
parent7b9f4f531f7ef28d71268d6b9ac475717f04e895 (diff)
Merge "Pass unique_ptr of InputChannel to Connection" into main
Diffstat (limited to 'services/inputflinger/InputManager.cpp')
-rw-r--r--services/inputflinger/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputManager.cpp b/services/inputflinger/InputManager.cpp
index 823df67d16..ae066c0f4a 100644
--- a/services/inputflinger/InputManager.cpp
+++ b/services/inputflinger/InputManager.cpp
@@ -277,7 +277,7 @@ binder::Status InputManager::createInputChannel(const std::string& name,
return binder::Status::fromExceptionCode(exceptionCodeFromStatusT(channel.error().code()),
channel.error().message().c_str());
}
- (*channel)->copyTo(*outChannel);
+ InputChannel::moveChannel(std::move(*channel), *outChannel);
return binder::Status::ok();
}