configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox()

Unlikely to impact performance at all, but this is essentially a "free"
transformation, so why not?
This commit is contained in:
Lioncash 2020-07-06 09:03:00 -04:00
parent b2997e5402
commit bd9df6c070

View file

@ -112,7 +112,7 @@ void ConfigureGraphics::UpdateDeviceComboBox() {
enabled = false;
break;
case Settings::RendererBackend::Vulkan:
for (const auto device : vulkan_devices) {
for (const auto& device : vulkan_devices) {
ui->device->addItem(device);
}
ui->device->setCurrentIndex(vulkan_device);