Closed Bug 1252191 Opened 4 years ago Closed 4 years ago

use UniquePtr instead of ScopedFreePtr in PoisonIOInterposerMac.cpp

Categories

(Core :: XPCOM, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: froydnj, Assigned: froydnj)

Details

Attachments

(1 file)

UniquePtr is more standard than ScopedFreePtr; using standard constructs
whenever possible is preferable.  In this particular case, since we
really just need a chunk of memory, we can allocate a char[] via
MakeUnique.
Comment on attachment 8724865 [details] [diff] [review]
use UniquePtr instead of ScopedFreePtr in PoisonIOInterposerMac.cpp

Review of attachment 8724865 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8724865 - Flags: review?(aklotz) → review+
https://hg.mozilla.org/mozilla-central/rev/5388023bea22
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.