mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 04:50:06 +00:00 
			
		
		
		
	Remove unnecessary copy, and make callback argument const in geolines
This commit is contained in:
		
							parent
							
								
									087f6ef310
								
							
						
					
					
						commit
						fea9083f7d
					
				
					 3 changed files with 8 additions and 8 deletions
				
			
		|  | @ -159,8 +159,9 @@ public: | |||
|    void ConnectSignals(); | ||||
|    void HandleGeoLinesEvent(std::weak_ptr<gl::draw::GeoLineDrawItem>& di, | ||||
|                             QEvent*                                   ev); | ||||
|    void HandleGeoLinesHover(std::shared_ptr<gl::draw::GeoLineDrawItem>& di, | ||||
|                             const QPointF& mouseGlobalPos); | ||||
|    void | ||||
|    HandleGeoLinesHover(const std::shared_ptr<gl::draw::GeoLineDrawItem>& di, | ||||
|                        const QPointF& mouseGlobalPos); | ||||
|    void ScheduleRefresh(); | ||||
| 
 | ||||
|    LineData& GetLineData(const std::shared_ptr<const awips::Segment>& segment, | ||||
|  | @ -720,8 +721,8 @@ void AlertLayer::Impl::HandleGeoLinesEvent( | |||
| } | ||||
| 
 | ||||
| void AlertLayer::Impl::HandleGeoLinesHover( | ||||
|    std::shared_ptr<gl::draw::GeoLineDrawItem>& di, | ||||
|    const QPointF&                              mouseGlobalPos) | ||||
|    const std::shared_ptr<gl::draw::GeoLineDrawItem>& di, | ||||
|    const QPointF&                                    mouseGlobalPos) | ||||
| { | ||||
|    if (di != lastHoverDi_) | ||||
|    { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak