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

Commit 8a69ace0 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Use bind_front instead of lambda when passing a member function

This is a bit more readable than the lambda.

Bug: none
Change-Id: Id7d005fb760bb912677e077384a271d0ba4c1a6d
Test: build only
Flag: EXEMPT refactor
parent 9a3dd3fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2713,7 +2713,8 @@ InputDispatcher::findTouchedWindowTargetsLocked(nsecs_t currentTime, const Motio
    {
        std::vector<TouchedWindow> hoveringWindows =
                getHoveringWindowsLocked(oldState, tempTouchState, entry,
                                         [this]() REQUIRES(mLock) { logDispatchStateLocked(); });
                                         std::bind_front(&InputDispatcher::logDispatchStateLocked,
                                                         this));
        // Hardcode to single hovering pointer for now.
        std::bitset<MAX_POINTER_ID + 1> pointerIds;
        pointerIds.set(entry.pointerProperties[0].id);