From 7075b6eeae0c7b4d8b21d3892125f16830ec1830 Mon Sep 17 00:00:00 2001 From: Andrei Golubev Date: Fri, 23 Oct 2020 11:10:43 +0200 Subject: [PATCH] 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 Reviewed-by: Thiago Macieira --- src/corelib/tools/qlist.h | 2 +- src/corelib/tools/qlist.qdoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 40ee923cd4..7ec62f33e5 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -272,7 +272,7 @@ public: return data()[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); } void append(const_iterator i1, const_iterator i2); void append(rvalue_ref t) { emplaceBack(std::move(t)); } diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index f2f07e373f..1da4239d10 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -637,7 +637,7 @@ */ /*! - \fn template void QList::append(const_reference value) + \fn template void QList::append(parameter_type value) Inserts \a value at the end of the list.