Skip to content

Commit

Permalink
Make QList::max_size() constexpr
Browse files Browse the repository at this point in the history
Looks like it was just forgotten in the original patch.

Found in Qt 6.8 API review.

Amends 7ce6920.

Pick-to: 6.8
Change-Id: Ibcc5ec8408b834f1271e632b804efdfb93f9203f
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
isolovev committed Aug 22, 2024
1 parent 33874a9 commit d585c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/tools/qlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ class QList
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();
}
Expand Down

0 comments on commit d585c7c

Please sign in to comment.