mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1251530: Use 'MakeUnique' instead of 'new' to populate UniquePtr variable in AddCSSValuePair. r=jwatt
This commit is contained in:
parent
80df610681
commit
712c311be3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user