mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:20:05 +00:00 
			
		
		
		
	Return static constant data by constant reference
This commit is contained in:
		
							parent
							
								
									a202e0e2a0
								
							
						
					
					
						commit
						c47a569645
					
				
					 6 changed files with 16 additions and 16 deletions
				
			
		|  | @ -154,12 +154,12 @@ Phenomenon GetPhenomenon(const std::string& code) | |||
|    return phenomenon; | ||||
| } | ||||
| 
 | ||||
| std::string GetPhenomenonCode(Phenomenon phenomenon) | ||||
| const std::string& GetPhenomenonCode(Phenomenon phenomenon) | ||||
| { | ||||
|    return phenomenonCodes_.left.at(phenomenon); | ||||
| } | ||||
| 
 | ||||
| std::string GetPhenomenonText(Phenomenon phenomenon) | ||||
| const std::string& GetPhenomenonText(Phenomenon phenomenon) | ||||
| { | ||||
|    return phenomenonText_.at(phenomenon); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat