mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	cleanup: fix initialization order in QMLProfile constructor
The compiler complains that members were initialized out-of-order. Even though this is not an issue here it is correct to emit a warning, since only then it is guaranteed that the objects are destructed in reverse-order with respect to construction. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
		
							parent
							
								
									38d70ba854
								
							
						
					
					
						commit
						45a3fff62c
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		|  | @ -14,9 +14,9 @@ QMLProfile::QMLProfile(QQuickItem *parent) : | |||
| 	QQuickPaintedItem(parent), | ||||
| 	m_devicePixelRatio(1.0), | ||||
| 	m_margin(0), | ||||
| 	m_profileWidget(new ProfileWidget2), | ||||
| 	m_xOffset(0.0), | ||||
| 	m_yOffset(0.0) | ||||
| 	m_yOffset(0.0), | ||||
| 	m_profileWidget(new ProfileWidget2) | ||||
| { | ||||
| 	setAntialiasing(true); | ||||
| 	setFlags(QQuickItem::ItemClipsChildrenToShape | QQuickItem::ItemHasContents ); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue