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

Commit bd5c270b authored by Ryan Prichard's avatar Ryan Prichard
Browse files

inputflinger: avoid vector<const T>

A container of const T uses std::allocator<const T>, which was an
undocumented libc++ extension that has been removed. See
llvm.org/PR96319.

Bug: http://b/349681543
Test: m inputflinger
Change-Id: I4ea703abd6bfcec5b361b638ee1a63c852854b94
parent 7e47435f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -65,10 +65,10 @@ private:
        void onEventProcessingComplete(nsecs_t processingTimestamp);

        InputTracer& tracer;
        std::vector<const TracedEvent> events;
        std::vector<TracedEvent> events;
        bool isEventProcessingComplete{false};
        // A queue to hold dispatch args from being traced until event processing is complete.
        std::vector<const WindowDispatchArgs> pendingDispatchArgs;
        std::vector<WindowDispatchArgs> pendingDispatchArgs;
        // The metadata should not be modified after event processing is complete.
        TracedEventMetadata metadata{};
    };