mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #715 from lioncash/const-ref
nvdrv: Take std::string by const reference in GetDevice()
This commit is contained in:
		
						commit
						eb9b55eafe
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user