WeakValue::WeakValue(const WeakValue &other) : val(0) { if (other.val) { allocVal(other.engine()); *val = *other.val; } }
WeakValue::WeakValue(const WeakValue &other) : val(0) { if (other.val) { val = other.engine()->memoryManager->m_weakValues->allocate(); *val = *other.val; } }