diff options
| author | 2018-07-19 13:27:48 -0700 | |
|---|---|---|
| committer | 2018-07-19 13:27:48 -0700 | |
| commit | eb9b55eafe822b1f14b298969c10aa6047e432af (patch) | |
| tree | 9a15be97af4607466a375ed6b33c9674c73933ae /src/core/hle | |
| parent | Merge pull request #720 from Subv/getentrytype_root (diff) | |
| parent | nvdrv: Take std::string by const reference in GetDevice() (diff) | |
| download | yuzu-eb9b55eafe822b1f14b298969c10aa6047e432af.tar.gz yuzu-eb9b55eafe822b1f14b298969c10aa6047e432af.tar.xz yuzu-eb9b55eafe822b1f14b298969c10aa6047e432af.zip | |
Merge pull request #715 from lioncash/const-ref
nvdrv: Take std::string by const reference in GetDevice()
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nvdrv/nvdrv.h | 2 |
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: | |||
| 30 | 30 | ||
| 31 | /// Returns a pointer to one of the available devices, identified by its name. | 31 | /// Returns a pointer to one of the available devices, identified by its name. |
| 32 | template <typename T> | 32 | template <typename T> |
| 33 | std::shared_ptr<T> GetDevice(std::string name) { | 33 | std::shared_ptr<T> GetDevice(const std::string& name) { |
| 34 | auto itr = devices.find(name); | 34 | auto itr = devices.find(name); |
| 35 | if (itr == devices.end()) | 35 | if (itr == devices.end()) |
| 36 | return nullptr; | 36 | return nullptr; |