зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
191a830575
Коммит
736ddc6d90
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче