Bug 1628715 - Part 8: Add MOZ_NONNULL_RETURN to ReconstructElementAt. r=xpcom-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D70832
This commit is contained in:
Simon Giesecke 2020-04-24 13:31:25 +00:00
Родитель 191a830575
Коммит 736ddc6d90
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1668,7 +1668,7 @@ class nsTArray_Impl
//
// would accomplish the same thing as long as T has the appropriate moving
// operator=, but some types don't for various reasons.
elem_type* ReconstructElementAt(index_type aIndex) {
elem_type* ReconstructElementAt(index_type aIndex) MOZ_NONNULL_RETURN {
elem_type* elem = &ElementAt(aIndex);
elem_traits::Destruct(elem);
elem_traits::Construct(elem);