Skip to content

Commit a1e5831

Browse files
committed
inputflinger: avoid vector<const T>
std::vector<const T> uses std::allocator<const T>, which is an undocumented libc++ extension to the C++ standard library. The extension was removed in llvm.org/PR96319. Use an ordinary non-const T instead. Bug: http://b/349681543 Test: m inputflinger_tests Test: m MODULES-IN-frameworks-native Flag: EXEMPT bugfix Change-Id: I3f00fa6eeedabdf72a2da01abdd8b2a0f3bddd78
1 parent 07889b1 commit a1e5831

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/inputflinger/tests/InputTracingTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ class InputTracingTest : public testing::Test {
133133
mDispatcher->setFocusedWindow(request);
134134
}
135135

136-
void tapAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows,
137-
Level inboundTraceLevel, Level dispatchTraceLevel, InputTraceSession& s) {
136+
void tapAndExpect(const std::vector<sp<FakeWindowHandle>>& windows, Level inboundTraceLevel,
137+
Level dispatchTraceLevel, InputTraceSession& s) {
138138
const auto down = MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN)
139139
.pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(110))
140140
.build();
@@ -156,7 +156,7 @@ class InputTracingTest : public testing::Test {
156156
}
157157
}
158158

159-
void keypressAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows,
159+
void keypressAndExpect(const std::vector<sp<FakeWindowHandle>>& windows,
160160
Level inboundTraceLevel, Level dispatchTraceLevel,
161161
InputTraceSession& s) {
162162
const auto down = KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build();

0 commit comments

Comments
 (0)