Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1116905 - part 2 - add MakeAndAddRef helper function to facilitat…
…e constructing TemporaryRef; r=Ms2ger With implicit conversion to TemporaryRef going away, one can no longer write: return new T(...); in a function returning TemporaryRef<T>. Instead, provide MakeAndAddRef to prevent people from having to construct boilerplate RefPtrs or similar. It also makes converting from TemporaryRef to already_AddRefed somewhat easier.
- Loading branch information