Instruction::~Instruction() { if (bb) { Function *fn = bb->getFunction(); bb->remove(this); fn->allInsns.remove(id); } for (int s = 0; srcExists(s); ++s) setSrc(s, NULL); // must unlink defs too since the list pointers will get deallocated for (int d = 0; defExists(d); ++d) setDef(d, NULL); }
/** * Constructs a window to display a hull. * * @param parent the parent widget */ CFormHull::CFormHull(QWidget *parent) : CFormMain(parent) { // create menu bar setupMenuBar(); // create main widget tabs = new CSailViewerTabs(this); setCentralWidget(tabs); // set language connect(qApp, SIGNAL(languageChanged()), this, SLOT(languageChange())); languageChange(); // set initial definition setDef(def); }