Hi, mozilla::NotNull is a recent addition to MFBT. It is used to mark pointers (both raw and smart) that are never null, e.g.:
- NotNull<char*> - NotNull<RefPtr<Event>> - NotNull<nsCOMPtr<Event>> It's most useful when used in function parameters and class members, more so than local variables. Its use can clarify APIs, and also help identify missing null checks and unnecessary null checks. See the comments in mfbt/NotNull.h for more details. Nick _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform