yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #715 from lioncash/const-ref

nvdrv: Take std::string by const reference in GetDevice()
This commit is contained in:
bunnei 2018-07-19 13:27:48 -07:00 committed by GitHub
commit eb9b55eafe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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