mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 22:20:04 +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
				
			
		|  | @ -242,7 +242,7 @@ PVtec::ProductType PVtec::GetProductType(const std::string& code) | |||
|    return productType; | ||||
| } | ||||
| 
 | ||||
| std::string PVtec::GetProductTypeCode(PVtec::ProductType productType) | ||||
| const std::string& PVtec::GetProductTypeCode(PVtec::ProductType productType) | ||||
| { | ||||
|    return productTypeCodes_.left.at(productType); | ||||
| } | ||||
|  | @ -266,7 +266,7 @@ PVtec::Action PVtec::GetAction(const std::string& code) | |||
|    return action; | ||||
| } | ||||
| 
 | ||||
| std::string PVtec::GetActionCode(PVtec::Action action) | ||||
| const std::string& PVtec::GetActionCode(PVtec::Action action) | ||||
| { | ||||
|    return actionCodes_.left.at(action); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat