diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2020-10-23 11:10:43 +0200 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2020-10-24 16:27:58 +0200 |
commit | 7075b6eeae0c7b4d8b21d3892125f16830ec1830 (patch) | |
tree | ca4ee483e68a0dec3fb44ababe218e0c85f2181b /src/corelib/tools/qlist.h | |
parent | e5bc777e5051a5b24b5e241072042631bd69fc22 (diff) |
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>
Diffstat (limited to 'src/corelib/tools/qlist.h')
-rw-r--r-- | src/corelib/tools/qlist.h | 2 |
1 files changed, 1 insertions, 1 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)); } |