mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
@@ -424,7 +424,7 @@ void InputHub::ScanInputDevices(const std::string& dirName)
|
||||
DHLOGI("ScanInputDevices enter, dirName %s.", dirName.c_str());
|
||||
std::vector<std::string> vecInputDevPath;
|
||||
ScanInputDevicesPath(dirName, vecInputDevPath);
|
||||
for (auto &tempPath: vecInputDevPath) {
|
||||
for (const auto &tempPath: vecInputDevPath) {
|
||||
OpenInputDeviceLocked(tempPath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user