r23718 by jghali - Code cleanup

scribus-commit scribus-commit at lists.scribus.net
Fri May 8 22:34:23 UTC 2020


Author: jghali
Date: Fri May  8 22:34:23 2020
New Revision: 23718

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23718
Log:
Code cleanup

Modified:
    trunk/Scribus/scribus/ui/smscrspinbox.cpp
    trunk/Scribus/scribus/ui/smscrspinbox.h

Modified: trunk/Scribus/scribus/ui/smscrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23718&path=/trunk/Scribus/scribus/ui/smscrspinbox.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/smscrspinbox.cpp	(original)
+++ trunk/Scribus/scribus/ui/smscrspinbox.cpp	Fri May  8 22:34:23 2020
@@ -8,28 +8,19 @@
 
 
 SMScrSpinBox::SMScrSpinBox(QWidget *pa, int s)
-: ScrSpinBox(pa, s),
-  m_hasParent(false),
-  m_useParentValue(false),
-  m_pValue(0.0)
+	: ScrSpinBox(pa, s)
 {
 	
 }
 
 SMScrSpinBox::SMScrSpinBox(double minValue, double maxValue, QWidget *pa, int s)
-: ScrSpinBox(minValue, maxValue, pa, s),
-  m_hasParent(false),
-  m_useParentValue(false),
-  m_pValue(0.0)
+	: ScrSpinBox(minValue, maxValue, pa, s)
 {
 	
 }
 
 SMScrSpinBox::SMScrSpinBox(QWidget *parent, const char * name)
-: ScrSpinBox(parent, 0),
-  m_hasParent(false),
-  m_useParentValue(false),
-  m_pValue(0.0)
+	: ScrSpinBox(parent, 0)
 {
 	
 }
@@ -94,6 +85,6 @@
 
 void SMScrSpinBox::slotValueChanged()
 {
-	if(m_hasParent)
+	if (m_hasParent)
 		setFont(true);
 }

Modified: trunk/Scribus/scribus/ui/smscrspinbox.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23718&path=/trunk/Scribus/scribus/ui/smscrspinbox.h
==============================================================================
--- trunk/Scribus/scribus/ui/smscrspinbox.h	(original)
+++ trunk/Scribus/scribus/ui/smscrspinbox.h	Fri May  8 22:34:23 2020
@@ -32,9 +32,10 @@
 	void interpretText();
 
 private:
-	bool   m_hasParent;
-	bool   m_useParentValue;
-	double m_pValue;
+	bool   m_hasParent = false;
+	bool   m_useParentValue = false;
+	double m_pValue = 0.0;
+
 	void setFont(bool wantBold);
 
 private slots:




More information about the scribus-commit mailing list