r20728 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Tue Jan 26 23:46:11 UTC 2016


Author: jghali
Date: Tue Jan 26 23:46:11 2016
New Revision: 20728

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20728
Log:
fix uninitialized members <coverity>

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

Modified: trunk/Scribus/scribus/ui/autoform.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20728&path=/trunk/Scribus/scribus/ui/autoform.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/autoform.cpp	(original)
+++ trunk/Scribus/scribus/ui/autoform.cpp	Tue Jan 26 23:46:11 2016
@@ -10,11 +10,7 @@
 
 Autoforms::Autoforms( QWidget* parent ) : QToolButton( parent )
 {
-//	Men = new QMenu();
 	buttonGroup1 = new AutoformButtonGroup( NULL );
-//	MenAct = new QWidgetAction(this);
-//	MenAct->setDefaultWidget(buttonGroup1);
-//	Men->addAction(MenAct);
 	setMenu(buttonGroup1);
 	setPopupMode(QToolButton::InstantPopup);
 	setIcon(QIcon(buttonGroup1->getIconPixmap(0)));
@@ -23,8 +19,6 @@
 
 void Autoforms::selForm(int a)
 {
-//	Men->activateItemAt(0);
-//	Men->hide();
 	setIcon(QIcon(buttonGroup1->getIconPixmap(a)));
 	int n;
 	qreal *AutoShapes = buttonGroup1->getShapeData(a, &n);

Modified: trunk/Scribus/scribus/ui/autoform.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20728&path=/trunk/Scribus/scribus/ui/autoform.h
==============================================================================
--- trunk/Scribus/scribus/ui/autoform.h	(original)
+++ trunk/Scribus/scribus/ui/autoform.h	Tue Jan 26 23:46:11 2016
@@ -23,8 +23,6 @@
 	Autoforms( QWidget* parent );
 	~Autoforms() {};
 	QPixmap getIconPixmap(int nr);
-	QMenu* Men;
-	QWidgetAction* MenAct;
 
 public slots:
 	void selForm(int a);




More information about the scribus-commit mailing list