зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1443265 - make already_AddRefed a MOZ_TEMPORARY_CLASS; r=mystor
This commit is contained in:
Родитель
88c85e4536
Коммит
08e65e40ba
|
@ -37,7 +37,7 @@ struct unused_t;
|
|||
* Otherwise, use Move(RefPtr/nsCOMPtr/etc).
|
||||
*/
|
||||
template<class T>
|
||||
struct MOZ_MUST_USE_TYPE MOZ_NON_AUTOABLE already_AddRefed
|
||||
struct MOZ_TEMPORARY_CLASS MOZ_MUST_USE_TYPE MOZ_NON_AUTOABLE already_AddRefed
|
||||
{
|
||||
/*
|
||||
* We want to allow returning nullptr from functions returning
|
||||
|
|
Загрузка…
Ссылка в новой задаче