Fix a -Wunqualified-std-cast-call warning.

This CL fixes the following warning:
	frameworks/base/libs/hwui/thread/WorkQueue.h:60:25: warning: unqualified call to std::move [-Wunqualified-std-cast-call]

The code in question was checked in in 2017. Probably the warning has
been enabled very recently.

Test: m -j
Change-Id: I1f87bf8f53088a464cd0790305e7803d8c0b59d1
This commit is contained in:
Kohsuke Yatoh
2022-07-28 00:14:06 +00:00
parent 563b92d6c6
commit a4e9397f3f

View File

@@ -57,7 +57,7 @@ private:
public:
WorkQueue(std::function<void()>&& wakeFunc, std::mutex& lock)
: mWakeFunc(move(wakeFunc)), mLock(lock) {}
: mWakeFunc(std::move(wakeFunc)), mLock(lock) {}
void process() {
auto now = clock::now();