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

Commit ddefa7b9 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Set prior to performing std::move()

We were calling a set method after a std::move(), which is not
assured to work.

Test: TreeHugger
Bug: 230462538
Change-Id: I4fb18f4ba94f6046c502b850dc0ce6143ad6e3b6
parent 7d79eb74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -129,8 +129,8 @@ void LayerTracing::notify(bool visibleRegionDirty, int64_t time, int64_t vsyncId
        entry.set_excludes_composition_state(true);
    }
    mFlinger.dumpDisplayProto(entry);
    mBuffer->emplace(std::move(entry));
    entry.set_vsync_id(vsyncId);
    mBuffer->emplace(std::move(entry));
}

} // namespace android