We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b17023 + ace3811 commit d6a93e9Copy full SHA for d6a93e9
1 file changed
services/inputflinger/InputFilter.cpp
@@ -56,7 +56,7 @@ InputFilter::InputFilter(InputListenerInterface& listener, IInputFlingerRust& ru
56
void InputFilter::notifyInputDevicesChanged(const NotifyInputDevicesChangedArgs& args) {
57
mDeviceInfos.clear();
58
mDeviceInfos.reserve(args.inputDeviceInfos.size());
59
- for (auto info : args.inputDeviceInfos) {
+ for (const auto& info : args.inputDeviceInfos) {
60
AidlDeviceInfo& aidlInfo = mDeviceInfos.emplace_back();
61
aidlInfo.deviceId = info.getId();
62
aidlInfo.external = info.isExternal();
0 commit comments