Skip to content
Snippets Groups Projects
Commit be06b21f authored by Lioncash's avatar Lioncash
Browse files

configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox()

Unlikely to impact performance at all, but this is essentially a "free"
transformation, so why not?
parent 52882a93
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment