VERY experimental Nintendo Switch 2 emulator
C++
nvdrv: Take std::string by const reference in GetDevice()
Lioncash6b1043fab407
diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.hindex 5799408178..35b2c65fc9 100644--- a/src/core/hle/service/nvdrv/nvdrv.h+++ b/src/core/hle/service/nvdrv/nvdrv.h@@ -30,7 +30,7 @@ public:/// Returns a pointer to one of the available devices, identified by its name.template <typename T>- std::shared_ptr<T> GetDevice(std::string name) {+ std::shared_ptr<T> GetDevice(const std::string& name) {auto itr = devices.find(name);if (itr == devices.end())return nullptr;