r24614 by jghali - Add missing default initializers in NodePalette

scribus-commit scribus-commit at lists.scribus.net
Wed Apr 7 22:32:35 UTC 2021


Author: jghali
Date: Wed Apr  7 22:32:35 2021
New Revision: 24614

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24614
Log:
Add missing default initializers in NodePalette

Modified:
    trunk/Scribus/scribus/ui/nodeeditpalette.h

Modified: trunk/Scribus/scribus/ui/nodeeditpalette.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24614&path=/trunk/Scribus/scribus/ui/nodeeditpalette.h
==============================================================================
--- trunk/Scribus/scribus/ui/nodeeditpalette.h	(original)
+++ trunk/Scribus/scribus/ui/nodeeditpalette.h	Wed Apr  7 22:32:35 2021
@@ -41,46 +41,47 @@
 
 	void setDefaults(PageItem* currItem);
 
-	QToolButton* MoveNode;
-	QToolButton* MoveControl;
-	QToolButton* AddNode;
-	QToolButton* DeleteNode;
-	QToolButton* AsymMove;
-	QToolButton* SymMove;
-	QToolButton* ResNode;
-	QToolButton* Res1Node;
-	QToolButton* PolySplit;
-	QToolButton* BezierClose;
-	QToolButton* PolyMirrorH;
-	QToolButton* PolyMirrorV;
-	QToolButton* PolyShearL;
-	QToolButton* PolyShearR;
-	QToolButton* PolyShearU;
-	QToolButton* PolyShearD;
-	QToolButton* RotateCCW;
-	QToolButton* RotateCW;
-	QToolButton* Expand;
-	QToolButton* Shrink;
-	QToolButton* Enlarge;
-	QToolButton* Reduce;
-	QCheckBox* PreviewMode;
-	QGroupBox* AbsMode;
-	QRadioButton* absToCanvas;
-	QRadioButton* absToPage;
-	QCheckBox* EditCont;
-	QLabel* TextLabel1;
-	ScrSpinBox* YSpin;
-	QLabel* TextLabel2;
-	ScrSpinBox* XSpin;
-	QSpinBox *RotVal;
-	QSpinBox *scalePercentage;
-	ScrSpinBox *scaleDistance;
-	QPushButton* ResetCont;
-	QPushButton* ResetContClip;
-	QPushButton* ResetShape2Clip;
-	QPushButton* editEditButton;
-	QPushButton* cancelEditButton;
-	QPushButton* resetDefaultButton;
+	QToolButton* MoveNode { nullptr };
+	QToolButton* MoveControl { nullptr };
+	QToolButton* AddNode { nullptr };
+	QToolButton* DeleteNode { nullptr };
+	QToolButton* AsymMove { nullptr };
+	QToolButton* SymMove { nullptr };
+	QToolButton* ResNode { nullptr };
+	QToolButton* Res1Node { nullptr };
+	QToolButton* PolySplit { nullptr };
+	QToolButton* BezierClose { nullptr };
+	QToolButton* PolyMirrorH { nullptr };
+	QToolButton* PolyMirrorV { nullptr };
+	QToolButton* PolyShearL { nullptr };
+	QToolButton* PolyShearR { nullptr };
+	QToolButton* PolyShearU { nullptr };
+	QToolButton* PolyShearD { nullptr };
+	QToolButton* RotateCCW { nullptr };
+	QToolButton* RotateCW { nullptr };
+	QToolButton* Expand { nullptr };
+	QToolButton* Shrink { nullptr };
+	QToolButton* Enlarge { nullptr };
+	QToolButton* Reduce { nullptr };
+	QCheckBox* PreviewMode { nullptr };
+	QGroupBox* AbsMode { nullptr };
+	QRadioButton* absToCanvas { nullptr };
+	QRadioButton* absToPage { nullptr };
+	QCheckBox* EditCont { nullptr };
+	QLabel* TextLabel1 { nullptr };
+	ScrSpinBox* YSpin { nullptr };
+	QLabel* TextLabel2 { nullptr };
+	ScrSpinBox* XSpin { nullptr };
+	QSpinBox *RotVal { nullptr };
+	QSpinBox *scalePercentage { nullptr };
+	ScrSpinBox *scaleDistance { nullptr };
+	QPushButton* ResetCont { nullptr };
+	QPushButton* ResetContClip { nullptr };
+	QPushButton* ResetShape2Clip { nullptr };
+	QPushButton* editEditButton { nullptr };
+	QPushButton* cancelEditButton { nullptr };
+	QPushButton* resetDefaultButton { nullptr };
+
 	void setDoc(ScribusDoc *dc, ScribusView *vi);
 	ScribusDoc* currentDocument() const;
 
@@ -147,9 +148,9 @@
 	ScribusDoc *m_doc { nullptr };
 	ScribusView *m_view { nullptr };
 	
-	double unitRatio;
-	double xPos;
-	double yPos;
+	double unitRatio { 1.0 };
+	double xPos { 0.0 };
+	double yPos { 0.0 };
 	FPointArray itemPath;
 	FPointArray itemContourPath;
 	




More information about the scribus-commit mailing list