mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 11:40:06 +00:00 
			
		
		
		
	clang-tidy fixes for fix_tooltips_at_high_zooms
This commit is contained in:
		
							parent
							
								
									fbed3fc8ab
								
							
						
					
					
						commit
						84ce6589a3
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -46,6 +46,8 @@ glm::vec2 GetMapScale(const QMapLibre::CustomLayerRenderParameters& params) | ||||||
| bool IsPointInPolygon(const std::vector<glm::vec2>& vertices, | bool IsPointInPolygon(const std::vector<glm::vec2>& vertices, | ||||||
|                       const glm::vec2&              point) |                       const glm::vec2&              point) | ||||||
| { | { | ||||||
|  |    // All members of these unions are floats, so no type safety violation
 | ||||||
|  |    // NOLINTBEGIN(cppcoreguidelines-pro-type-union-access)
 | ||||||
|    bool inPolygon = true; |    bool inPolygon = true; | ||||||
|    bool allSame   = true; |    bool allSame   = true; | ||||||
| 
 | 
 | ||||||
|  | @ -80,6 +82,7 @@ bool IsPointInPolygon(const std::vector<glm::vec2>& vertices, | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    return inPolygon; |    return inPolygon; | ||||||
|  |    // NOLINTEND(cppcoreguidelines-pro-type-union-access)
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate) | glm::vec2 LatLongToScreenCoordinate(const QMapLibre::Coordinate& coordinate) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak