Make QList::max_size() constexpr

Looks like it was just forgotten in the original patch.

Found in Qt 6.8 API review.

Amends 7ce6920aacfcba485cd8017e01c6aeb324292e75.

Pick-to: 6.8
Change-Id: Ibcc5ec8408b834f1271e632b804efdfb93f9203f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ivan Solovev 2024-08-21 16:39:15 +02:00
parent 33874a9424
commit d585c7c0a3

View File

@ -690,7 +690,7 @@ public:
inline reference back() { return last(); }
inline const_reference back() const noexcept { return last(); }
void shrink_to_fit() { squeeze(); }
static qsizetype max_size() noexcept
static constexpr qsizetype max_size() noexcept
{
return Data::max_size();
}