Bug 1443265 - make already_AddRefed a MOZ_TEMPORARY_CLASS; r=mystor

This commit is contained in:
Nathan Froyd 2018-03-05 16:12:41 -05:00
Родитель 88c85e4536
Коммит 08e65e40ba
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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