mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Cleanup: remove default constructor from MapLocation
Since this is no longer a Q_METATYPE, nobody will try to default construct this object. Remove the default constructor and guarantee that there will be no null divesite. Of course, the lack of default constructor means that the default argument to the "selected" member variable should be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									0c374af176
								
							
						
					
					
						commit
						c5f355ee8b
					
				
					 2 changed files with 1 additions and 6 deletions
				
			
		|  | @ -12,10 +12,6 @@ | |||
| 
 | ||||
| #define MIN_DISTANCE_BETWEEN_DIVE_SITES_M 50.0 | ||||
| 
 | ||||
| MapLocation::MapLocation() : divesite(nullptr), selected(false) | ||||
| { | ||||
| } | ||||
| 
 | ||||
| MapLocation::MapLocation(struct dive_site *dsIn, QGeoCoordinate coordIn, QString nameIn, bool selectedIn) : | ||||
|     divesite(dsIn), coordinate(coordIn), name(nameIn), selected(selectedIn) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue