s/MOZ_STACK_CLASS/MOZ_RAII where appropriate

NEW
Unassigned

Status

()

3 years ago
3 years ago

People

(Reporter: Nika, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
There are places in the code right now where we use MOZ_STACK_CLASS to mark a class which is meant to be used as an RAII guard, and should only be allocated on the stack, but didn't use MOZ_GUARD_OBJECT. MOZ_RAII gives stronger guarantees (also preventing allocations as temporaries), and should be used in many of these cases.

Updated

3 years ago
Depends on: 1238121
You need to log in before you can comment on or make changes to this bug.