diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2023-04-21 15:46:21 +0200 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-04-24 19:49:29 +0000 |
| commit | 3fd7086878ea03861fc82348fc5b4e77f76b2a86 (patch) | |
| tree | e6af812440373d33d404b369192e29b5a36f8ea7 /src/gui/opengl/qopengl.cpp | |
| parent | e0cec08480ab6a453e62b76666d5e24bef4f2ab0 (diff) | |
Silence MSVC warning on constructing QList from initializer_list
MSVC complains because we call Data::allocate(args.size()) and, of
course, initializer_list::size() returns unsigned std::size_type,
while the relevant Data::allocate() overload takes a signed qsizetype.
The constructor from iterators potentially has the same problem, if
the iterator type's difference_type is unsigned, so make the
type-conversion overt there, too.
Pick-to: 6.2 6.5
Change-Id: I521eca26a48aed570855b13242bf2df8bfa38f96
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopengl.cpp')
0 files changed, 0 insertions, 0 deletions
