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:
parent
33874a9424
commit
d585c7c0a3
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user