diff options
| author | 2022-08-03 14:40:29 +0800 | |
|---|---|---|
| committer | 2022-08-03 16:18:01 +0800 | |
| commit | 5436a87227ac0a3ac3c7f15f8b0bbd99c593e9ef (patch) | |
| tree | f28cfbf5ad4efcb8fc5771709a6d7940f948de06 | |
| parent | 06a34005be147df84263273f4e2c4941c90433ec (diff) | |
Fix unqualified-std-cast-call compiler warning
Context: https://reviews.llvm.org/D119670
Test: presubmit
Change-Id: Id7e81c1be84c4de2696a137a1e9bb639547a8abe
| -rw-r--r-- | libs/binder/tests/binderThroughputTest.cpp | 7 | ||||
| -rw-r--r-- | libs/binder/tests/schd-dbg.cpp | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/libs/binder/tests/binderThroughputTest.cpp b/libs/binder/tests/binderThroughputTest.cpp index 3b1faa8c2f..cfaf2a987f 100644 --- a/libs/binder/tests/binderThroughputTest.cpp +++ b/libs/binder/tests/binderThroughputTest.cpp @@ -249,12 +249,13 @@ Pipe make_worker(int num, int iterations, int worker_count, int payload_size, bo pid_t pid = fork(); if (pid) { /* parent */ - return move(get<0>(pipe_pair)); + return std::move(get<0>(pipe_pair)); } else { /* child */ - worker_fx(num, worker_count, iterations, payload_size, cs_pair, move(get<1>(pipe_pair))); + worker_fx(num, worker_count, iterations, payload_size, cs_pair, + std::move(get<1>(pipe_pair))); /* never get here */ - return move(get<0>(pipe_pair)); + return std::move(get<0>(pipe_pair)); } } diff --git a/libs/binder/tests/schd-dbg.cpp b/libs/binder/tests/schd-dbg.cpp index 56d958c6be..0035e4ee5a 100644 --- a/libs/binder/tests/schd-dbg.cpp +++ b/libs/binder/tests/schd-dbg.cpp @@ -398,14 +398,13 @@ Pipe make_process(int num, int iterations, int no_process, int payload_size) { pid_t pid = fork(); if (pid) { // parent - return move(get<0>(pipe_pair)); + return std::move(get<0>(pipe_pair)); } else { // child thread_dump(is_client(num) ? "client" : "server"); - worker_fx(num, no_process, iterations, payload_size, - move(get<1>(pipe_pair))); + worker_fx(num, no_process, iterations, payload_size, std::move(get<1>(pipe_pair))); // never get here - return move(get<0>(pipe_pair)); + return std::move(get<0>(pipe_pair)); } } |