Refactoring

This commit is contained in:
Vadim Kuznetzov 2015-02-01 11:33:49 +03:00
parent 6a908fc86f
commit 4700d7d747
3 changed files with 8 additions and 4 deletions

View File

@ -66,10 +66,7 @@ bool AbstractSpiceKernel::prepareSpiceNetlist(QTextStream &stream)
QTextEdit *err = new QTextEdit;
Sch->prepareNetlist(stream,collect,err,true);
delete err;
//Sch->Signals.clear(); // was filled in "giveNodeNames()"
//Sch->FileList.clear();
Sch->clearSignalsAndFileList(); // for proper build of subckts
return true; // TODO: Add feature to determine ability of spice simulation
}

View File

@ -281,6 +281,7 @@ public:
QString createNetlist(QTextStream&, int);
bool loadDocument();
void highlightWireLabels (void);
void clearSignalsAndFileList();
private:
int saveDocument();

View File

@ -1961,3 +1961,9 @@ QString Schematic::createNetlist(QTextStream& stream, int NumPorts)
return Time;
}
void Schematic::clearSignalsAndFileList()
{
Signals.clear(); // was filled in "giveNodeNames()"
FileList.clear();
}