Update QList::append(const_reference) -> QList::append(parameter_type)

Forgotten during previous round of replacing const lvalue references
with parameter_type in QList methods

Task-number: QTBUG-86553
Change-Id: I9abda4db3b504521b64fab1f220559c36bfeb9f5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Andrei Golubev 2020-10-23 11:10:43 +02:00
parent e5bc777e50
commit 7075b6eeae
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ public:
return data()[i]; return data()[i];
} }
const_reference operator[](qsizetype i) const noexcept { return at(i); } const_reference operator[](qsizetype i) const noexcept { return at(i); }
void append(const_reference t) void append(parameter_type t)
{ append(const_iterator(std::addressof(t)), const_iterator(std::addressof(t)) + 1); } { append(const_iterator(std::addressof(t)), const_iterator(std::addressof(t)) + 1); }
void append(const_iterator i1, const_iterator i2); void append(const_iterator i1, const_iterator i2);
void append(rvalue_ref t) { emplaceBack(std::move(t)); } void append(rvalue_ref t) { emplaceBack(std::move(t)); }

View File

@ -637,7 +637,7 @@
*/ */
/*! /*!
\fn template <typename T> void QList<T>::append(const_reference value) \fn template <typename T> void QList<T>::append(parameter_type value)
Inserts \a value at the end of the list. Inserts \a value at the end of the list.