summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 11:39:39 -0400
committerLioncash <mathew1800@gmail.com>2018-07-19 11:40:36 -0400
commitdc35c3f9d751ff100d7d4c1ccd599574ce73254f (patch)
tree6d4772020efd5d72eee558db939f2aa25dcfc4ac /src
parent758c357868fca86edf3642a5a7e658839d35183c (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.h2
1 files changed, 1 insertions, 1 deletions
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 <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;