Skip to content

Commit

Permalink
QVarLengthArray: Avoid int vs. size_t warnings in operator=
Browse files Browse the repository at this point in the history
Change-Id: I879b62c55e4211d3e4e1a18f6699f26e3f5de1f8
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
alpqr committed Sep 28, 2019
1 parent d35de9e commit 46201f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/tools/qvarlengtharray.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class QVarLengthArray
#ifdef Q_COMPILER_INITIALIZER_LISTS
QVarLengthArray<T, Prealloc> &operator=(std::initializer_list<T> list)
{
resize(list.size());
resize(int(list.size())); // ### q6sizetype
std::copy(list.begin(), list.end(),
QT_MAKE_CHECKED_ARRAY_ITERATOR(this->begin(), this->size()));
return *this;
Expand Down

0 comments on commit 46201f0

Please sign in to comment.