mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	kernel: Make some functions const
This commit is contained in:
		
							parent
							
								
									d5be332d21
								
							
						
					
					
						commit
						9b68d5e074
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -37,7 +37,7 @@ Handle ObjectPool::Create(Object* obj, int range_bottom, int range_top) { | ||||||
|     return 0; |     return 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| bool ObjectPool::IsValid(Handle handle) { | bool ObjectPool::IsValid(Handle handle) const { | ||||||
|     int index = handle - HANDLE_OFFSET; |     int index = handle - HANDLE_OFFSET; | ||||||
|     if (index < 0) |     if (index < 0) | ||||||
|         return false; |         return false; | ||||||
|  | @ -75,7 +75,7 @@ void ObjectPool::List() { | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int ObjectPool::GetCount() { | int ObjectPool::GetCount() const { | ||||||
|     int count = 0; |     int count = 0; | ||||||
|     for (int i = 0; i < MAX_COUNT; i++) { |     for (int i = 0; i < MAX_COUNT; i++) { | ||||||
|         if (occupied[i]) |         if (occupied[i]) | ||||||
|  |  | ||||||
|  | @ -86,7 +86,7 @@ public: | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     bool IsValid(Handle handle); |     bool IsValid(Handle handle) const; | ||||||
| 
 | 
 | ||||||
|     template <class T> |     template <class T> | ||||||
|     T* Get(Handle handle) { |     T* Get(Handle handle) { | ||||||
|  | @ -142,7 +142,7 @@ public: | ||||||
|     Object* &operator [](Handle handle); |     Object* &operator [](Handle handle); | ||||||
|     void List(); |     void List(); | ||||||
|     void Clear(); |     void Clear(); | ||||||
|     int GetCount(); |     int GetCount() const; | ||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue