2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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 52882a93a5
commit be06b21f7b

View file

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