From dc35c3f9d751ff100d7d4c1ccd599574ce73254f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 19 Jul 2018 11:39:39 -0400 Subject: nvdrv: Take std::string by const reference in GetDevice() This is only ever used as a lookup into the device map, so we don't need to take the std::string instance by value here. --- src/core/hle/service/nvdrv/nvdrv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/service/nvdrv/nvdrv.h b/src/core/hle/service/nvdrv/nvdrv.h index 579940817..35b2c65fc 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 - std::shared_ptr GetDevice(std::string name) { + std::shared_ptr GetDevice(const std::string& name) { auto itr = devices.find(name); if (itr == devices.end()) return nullptr; -- cgit v1.2.3