소스 검색

configure_graphics: Prevent unnecessary string copies in UpdateDeviceComboBox()

Unlikely to impact performance at all, but this is essentially a "free"
transformation, so why not?
Lioncash 6 년 전
부모
커밋
be06b21f7b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/yuzu/configuration/configure_graphics.cpp

+ 1 - 1
src/yuzu/configuration/configure_graphics.cpp

@@ -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);