mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:00: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
				
			
		|  | @ -27,6 +27,8 @@ class LineSettings::Impl | |||
| public: | ||||
|    explicit Impl() | ||||
|    { | ||||
|       // SetDefault, SetMinimum, and SetMaximum are descriptive
 | ||||
|       // NOLINTBEGIN(cppcoreguidelines-avoid-magic-numbers)
 | ||||
|       lineColor_.SetDefault(kWhiteColorString_); | ||||
|       highlightColor_.SetDefault(kTransparentColorString_); | ||||
|       borderColor_.SetDefault(kBlackColorString_); | ||||
|  | @ -42,6 +44,7 @@ public: | |||
|       lineWidth_.SetMaximum(9); | ||||
|       highlightWidth_.SetMaximum(9); | ||||
|       borderWidth_.SetMaximum(9); | ||||
|       // NOLINTEND(cppcoreguidelines-avoid-magic-numbers)
 | ||||
| 
 | ||||
|       lineColor_.SetValidator(&util::color::ValidateArgbString); | ||||
|       highlightColor_.SetValidator(&util::color::ValidateArgbString); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak