mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:30:05 +00:00 
			
		
		
		
	NOLINT setting settings defaults/minimums/maximums for magic numbers
This commit is contained in:
		
							parent
							
								
									c1aeefb0eb
								
							
						
					
					
						commit
						0a3913bdee
					
				
					 7 changed files with 24 additions and 1 deletions
				
			
		|  | @ -33,6 +33,8 @@ public: | |||
| 
 | ||||
|       boost::to_lower(defaultAlertLocationMethodValue); | ||||
| 
 | ||||
|       // SetDefault, SetMinimum and SetMaximum are descriptive
 | ||||
|       // NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers)
 | ||||
|       alertSoundFile_.SetDefault(defaultAlertSoundFileValue); | ||||
|       alertLocationMethod_.SetDefault(defaultAlertLocationMethodValue); | ||||
|       alertLatitude_.SetDefault(0.0); | ||||
|  | @ -48,7 +50,7 @@ public: | |||
|       alertLongitude_.SetMaximum(180.0); | ||||
|       alertRadius_.SetMinimum(0.0); | ||||
|       alertRadius_.SetMaximum(9999999999); | ||||
| 
 | ||||
|       // NOLINTEND(cppcoreguidelines-avoid-magic-numbers)
 | ||||
| 
 | ||||
|       alertLocationMethod_.SetValidator( | ||||
|          SCWX_SETTINGS_ENUM_VALIDATOR(types::LocationMethod, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak