ExpEvaluator::ExpEvaluator(const ExpEvaluator& original) : m_operators(original.m_operators), m_unaryOps(original.unaryOps()), m_inError(false), m_lineNo(original.lineNumber()), m_extender(0) { extender(original.extender()); for (ObjList* l = original.m_opcodes.skipNull(); l; l = l->skipNext()) { const ExpOperation* o = static_cast<const ExpOperation*>(l->get()); m_opcodes.append(o->clone()); } }
ExpEvaluator::ExpEvaluator(const ExpEvaluator& original) : m_operators(original.m_operators), m_extender(0) { extender(original.extender()); for (ObjList* l = original.m_opcodes.skipNull(); l; l = l->skipNext()) { const ExpOperation* o = static_cast<const ExpOperation*>(l->get()); m_opcodes.append(new ExpOperation(*o)); } }