mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 22:00:05 +00:00 
			
		
		
		
	Kernel: Updated various kernel function "name" arguments to be const references.
This commit is contained in:
		
							parent
							
								
									d7363322c7
								
							
						
					
					
						commit
						5365ca157d
					
				
					 4 changed files with 6 additions and 6 deletions
				
			
		|  | @ -139,7 +139,7 @@ Result ClearEvent(Handle handle) { | ||||||
|  * @param name Optional name of event |  * @param name Optional name of event | ||||||
|  * @return Newly created Event object |  * @return Newly created Event object | ||||||
|  */ |  */ | ||||||
| Event* CreateEvent(Handle& handle, const ResetType reset_type, const std::string name) { | Event* CreateEvent(Handle& handle, const ResetType reset_type, const std::string& name) { | ||||||
|     Event* evt = new Event; |     Event* evt = new Event; | ||||||
| 
 | 
 | ||||||
|     handle = Kernel::g_object_pool.Create(evt); |     handle = Kernel::g_object_pool.Create(evt); | ||||||
|  | @ -158,7 +158,7 @@ Event* CreateEvent(Handle& handle, const ResetType reset_type, const std::string | ||||||
|  * @param name Optional name of event |  * @param name Optional name of event | ||||||
|  * @return Handle to newly created Event object |  * @return Handle to newly created Event object | ||||||
|  */ |  */ | ||||||
| Handle CreateEvent(const ResetType reset_type, const std::string name) { | Handle CreateEvent(const ResetType reset_type, const std::string& name) { | ||||||
|     Handle handle; |     Handle handle; | ||||||
|     Event* evt = CreateEvent(handle, reset_type, name); |     Event* evt = CreateEvent(handle, reset_type, name); | ||||||
|     return handle; |     return handle; | ||||||
|  |  | ||||||
|  | @ -47,6 +47,6 @@ Result ClearEvent(Handle handle); | ||||||
|  * @param name Optional name of event |  * @param name Optional name of event | ||||||
|  * @return Handle to newly created Event object |  * @return Handle to newly created Event object | ||||||
|  */ |  */ | ||||||
| Handle CreateEvent(const ResetType reset_type, const std::string name="Unknown"); | Handle CreateEvent(const ResetType reset_type, const std::string& name="Unknown"); | ||||||
| 
 | 
 | ||||||
| } // namespace
 | } // namespace
 | ||||||
|  |  | ||||||
|  | @ -137,7 +137,7 @@ Result ReleaseMutex(Handle handle) { | ||||||
|  * @param name Optional name of mutex |  * @param name Optional name of mutex | ||||||
|  * @return Pointer to new Mutex object |  * @return Pointer to new Mutex object | ||||||
|  */ |  */ | ||||||
| Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string name) { | Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string& name) { | ||||||
|     Mutex* mutex = new Mutex; |     Mutex* mutex = new Mutex; | ||||||
|     handle = Kernel::g_object_pool.Create(mutex); |     handle = Kernel::g_object_pool.Create(mutex); | ||||||
| 
 | 
 | ||||||
|  | @ -161,7 +161,7 @@ Mutex* CreateMutex(Handle& handle, bool initial_locked, const std::string name) | ||||||
|  * @param name Optional name of mutex |  * @param name Optional name of mutex | ||||||
|  * @return Handle to newly created object |  * @return Handle to newly created object | ||||||
|  */ |  */ | ||||||
| Handle CreateMutex(bool initial_locked, std::string name) { | Handle CreateMutex(bool initial_locked, const std::string& name) { | ||||||
|     Handle handle; |     Handle handle; | ||||||
|     Mutex* mutex = CreateMutex(handle, initial_locked, name); |     Mutex* mutex = CreateMutex(handle, initial_locked, name); | ||||||
|     return handle; |     return handle; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,6 @@ Result ReleaseMutex(Handle handle); | ||||||
|  * @param name Optional name of mutex |  * @param name Optional name of mutex | ||||||
|  * @return Handle to newly created object |  * @return Handle to newly created object | ||||||
|  */ |  */ | ||||||
| Handle CreateMutex(bool initial_locked, const std::string name="Unknown"); | Handle CreateMutex(bool initial_locked, const std::string& name="Unknown"); | ||||||
| 
 | 
 | ||||||
| } // namespace
 | } // namespace
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue