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

Commit e949d7f1 authored by jioana's avatar jioana Committed by Ioana Jianu
Browse files

Take 'sources' argument by const reference

Bug: b/270049345
Test: atest inputflinger_tests:LatencyTrackerTest
Flag: NONE adding a reference

Change-Id: I0568ea90da984ae6f906d8bf018de9a423834858
parent b9813bb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ bool ConnectionTimeline::operator!=(const ConnectionTimeline& rhs) const {

InputEventTimeline::InputEventTimeline(bool isDown, nsecs_t eventTime, nsecs_t readTime,
                                       uint16_t vendorId, uint16_t productId,
                                       std::set<InputDeviceUsageSource> sources)
                                       const std::set<InputDeviceUsageSource>& sources)
      : isDown(isDown),
        eventTime(eventTime),
        readTime(readTime),
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ private:

struct InputEventTimeline {
    InputEventTimeline(bool isDown, nsecs_t eventTime, nsecs_t readTime, uint16_t vendorId,
                       uint16_t productId, std::set<InputDeviceUsageSource> sources);
                       uint16_t productId, const std::set<InputDeviceUsageSource>& sources);
    const bool isDown; // True if this is an ACTION_DOWN event
    const nsecs_t eventTime;
    const nsecs_t readTime;