Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4e9397f authored by Kohsuke Yatoh's avatar Kohsuke Yatoh
Browse files

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
parent 563b92d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();