nsSMILValue::nsSMILValue(const nsSMILValue& aVal) : mType(&nsSMILNullType::sSingleton) { nsresult rv = InitAndCheckPostcondition(aVal.mType); if (NS_FAILED(rv)) return; mType->Assign(*this, aVal); }
nsSMILValue::nsSMILValue(const nsISMILType* aType) : mType(&nsSMILNullType::sSingleton) { if (!aType) { NS_ERROR("Trying to construct nsSMILValue with null mType pointer"); return; } InitAndCheckPostcondition(aType); }
nsSMILValue::nsSMILValue(const nsSMILValue& aVal) : mType(&nsSMILNullType::sSingleton) { InitAndCheckPostcondition(aVal.mType); mType->Assign(*this, aVal); }
void nsSMILValue::DestroyAndReinit(const nsISMILType* aNewType) { DestroyAndCheckPostcondition(); InitAndCheckPostcondition(aNewType); }
nsresult nsSMILValue::DestroyAndReinit(const nsISMILType* aNewType) { DestroyAndCheckPostcondition(); return InitAndCheckPostcondition(aNewType); }