mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 09:17:58 -05: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user