From 6634c1741e4b7dc2b5ffdec8ca4725a25786b1c3 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 1 Mar 2023 23:30:29 +0000 Subject: [PATCH] Fix the missing std Bug: b/239662094 Test: enable Wunqualified-std-cast-call locally and run m to build Change-Id: I203af8dbbbf1d889b9fc5efd5b62fa165ee09dc2 --- libutils/ProcessCallStack_fuzz.cpp | 2 +- libutils/RefBase_fuzz.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libutils/ProcessCallStack_fuzz.cpp b/libutils/ProcessCallStack_fuzz.cpp index 30136cda7..552a11edd 100644 --- a/libutils/ProcessCallStack_fuzz.cpp +++ b/libutils/ProcessCallStack_fuzz.cpp @@ -44,7 +44,7 @@ void spawnThreads(FuzzedDataProvider* dataProvider) { dataProvider->ConsumeRandomLengthString(MAX_NAME_SIZE).append(std::to_string(i)); std::thread th = std::thread(loop); pthread_setname_np(th.native_handle(), threadName.c_str()); - threads.push_back(move(th)); + threads.push_back(std::move(th)); } // Collect thread information diff --git a/libutils/RefBase_fuzz.cpp b/libutils/RefBase_fuzz.cpp index 69288b354..8291be93a 100644 --- a/libutils/RefBase_fuzz.cpp +++ b/libutils/RefBase_fuzz.cpp @@ -177,7 +177,7 @@ void spawnThreads(FuzzedDataProvider* dataProvider) { uint8_t opCount = dataProvider->ConsumeIntegralInRange(1, kMaxOperations); std::vector threadOperations = dataProvider->ConsumeBytes(opCount); std::thread tmpThread = std::thread(loop, threadOperations); - threads.push_back(move(tmpThread)); + threads.push_back(std::move(tmpThread)); } for (auto& th : threads) {