//------------------------------------------------------------------------------ // copyData() -- copy member data //------------------------------------------------------------------------------ void SymbolLoader::copyData(const SymbolLoader& org, const bool cc) { BaseClass::copyData(org); if (cc) initData(); // Clear the symbols; the user will need to // create these with the new template list. clearLoader(); { Basic::PairStream* copy = 0; if (org.templates != 0) { copy = org.templates->clone(); } setSlotTemplates(copy); if (copy != 0) copy->unref(); } showInRangeOnly = org.showInRangeOnly; interconnect = org.interconnect; }
//------------------------------------------------------------------------------ //deleteData() -- delete member data //------------------------------------------------------------------------------ void Board::deleteData() { setSlotPuzzle(nullptr); setSlotTemplates(nullptr); clearGraphics(); }