Просмотр исходного кода

Merge pull request #715 from lioncash/const-ref

nvdrv: Take std::string by const reference in GetDevice()
bunnei 8 лет назад
Родитель
Сommit
eb9b55eafe
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hle/service/nvdrv/nvdrv.h

+ 1 - 1
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;