зеркало из https://github.com/mozilla/gecko-dev.git
d2ed3d6312
Most cases where the pointer is stored into an already-declared variable can trivially be changed to MakeNotNull<T*>, as the NotNull raw pointer will end up in a smart pointer. In RAII cases, the target type can be specified (e.g.: `MakeNotNull<RefPtr<imgFrame>>)`), in which case the variable type may just be `auto`, similar to the common use of MakeUnique. Except when the target type is a base pointer, in which case it must be specified in the declaration. MozReview-Commit-ID: BYaSsvMhiDi --HG-- extra : rebase_source : 8fe6f2aeaff5f515b7af2276c439004fa3a1f3ab |
||
---|---|---|
.. | ||
browser | ||
crashtests | ||
fuzzing | ||
gtest | ||
mochitest | ||
reftest | ||
unit |