mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 01:20:06 +00:00 
			
		
		
		
	Don't connect signals/slots with null pointers
This commit is contained in:
		
							parent
							
								
									5039fea3b9
								
							
						
					
					
						commit
						09064c0be0
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		|  | @ -88,10 +88,13 @@ void OverlayLayer::Initialize() | ||||||
|       p->texture_ = p->font_->GenerateTexture(gl); |       p->texture_ = p->font_->GenerateTexture(gl); | ||||||
|    } |    } | ||||||
| 
 | 
 | ||||||
|    connect(context()->radarProductView_.get(), |    if (context()->radarProductView_ != nullptr) | ||||||
|            &view::RadarProductView::SweepComputed, |    { | ||||||
|            this, |       connect(context()->radarProductView_.get(), | ||||||
|            &OverlayLayer::UpdateSweepTimeNextFrame); |               &view::RadarProductView::SweepComputed, | ||||||
|  |               this, | ||||||
|  |               &OverlayLayer::UpdateSweepTimeNextFrame); | ||||||
|  |    } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void OverlayLayer::Render(const QMapbox::CustomLayerRenderParameters& params) | void OverlayLayer::Render(const QMapbox::CustomLayerRenderParameters& params) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat