[qet] [2122] remove needless code

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2122
Author:   blacksun
Date:     2013-04-21 15:55:51 +0200 (Sun, 21 Apr 2013)
Log Message:
-----------
remove needless code

Modified Paths:
--------------
    trunk/sources/conductorautonumerotation.cpp

Modified: trunk/sources/conductorautonumerotation.cpp
===================================================================
--- trunk/sources/conductorautonumerotation.cpp	2013-04-19 14:59:20 UTC (rev 2121)
+++ trunk/sources/conductorautonumerotation.cpp	2013-04-21 13:55:51 UTC (rev 2122)
@@ -50,6 +50,7 @@
 	conductor_ = c;
 	diagram_ = c -> diagram();
 	conductor_list = c -> relatedPotentialConductors();
+	if (strategy_) delete strategy_;
 }
 
 /**
@@ -139,8 +140,8 @@
 	QList <QSet <Conductor *> > potential_list = diagram_ -> potentials();
 	//Browse all potentials and set the default text
 	for (int i=0; i < potential_list.size(); i++) {
-		ConductorAutoNumerotation can (potential_list.at(i).toList().first());
-		can.applyText(diagram_ -> defaultConductorProperties.text);
+		setConductor (potential_list.at(i).toList().first());
+		applyText (diagram_ -> defaultConductorProperties.text);
 	}
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/