Bug 1251530: Use 'MakeUnique' instead of 'new' to populate UniquePtr variable in AddCSSValuePair. r=jwatt

This commit is contained in:
Daniel Holbert 2016-02-26 07:34:37 -08:00
parent 80df610681
commit 712c311be3

View File

@ -1801,7 +1801,7 @@ AddCSSValuePair(nsCSSProperty aProperty, uint32_t aRestrictions,
return result; // nullptr (returning |result| for RVO)
}
result.reset(new nsCSSValuePair);
result = MakeUnique<nsCSSValuePair>();
static nsCSSValue nsCSSValuePair::* const pairValues[2] = {
&nsCSSValuePair::mXValue, &nsCSSValuePair::mYValue