diff --git a/layout/style/StyleAnimationValue.cpp b/layout/style/StyleAnimationValue.cpp index c1e536341b34..b6ee0c9e1a6e 100644 --- a/layout/style/StyleAnimationValue.cpp +++ b/layout/style/StyleAnimationValue.cpp @@ -1801,7 +1801,7 @@ AddCSSValuePair(nsCSSProperty aProperty, uint32_t aRestrictions, return result; // nullptr (returning |result| for RVO) } - result.reset(new nsCSSValuePair); + result = MakeUnique(); static nsCSSValue nsCSSValuePair::* const pairValues[2] = { &nsCSSValuePair::mXValue, &nsCSSValuePair::mYValue