| 42 | } |
| 43 | |
| 44 | void SwitchUSBDevice::SetInterfaces(UsbHsInterface *interfaces, int length) |
| 45 | { |
| 46 | if (length > 0) |
| 47 | { |
| 48 | m_vendorID = interfaces->device_desc.idVendor; |
| 49 | m_productID = interfaces->device_desc.idProduct; |
| 50 | m_interfaces.clear(); |
| 51 | m_interfaces.reserve(length); |
| 52 | for (int i = 0; i != length; ++i) |
| 53 | { |
| 54 | m_interfaces.push_back(std::make_unique<SwitchUSBInterface>(interfaces[i])); |
| 55 | } |
| 56 | } |
| 57 | } |
nothing calls this directly
no outgoing calls
no test coverage detected