Change MaxKeyCount type from enum to static constexpr int

The change was needed because std::fill_n(), which takes it, does not
handle enum type on VxWorks. As it was anonymous with only one member,
it could be changed to static constexpr int.

Task-number: QTBUG-115777
Change-Id: I7cb4d267ad21f6b963d851e30bc91042fbf5c15a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Tomasz Kozlowski 2023-07-18 07:15:52 +02:00 committed by Tomasz Kozłowski
parent 28ab45182a
commit c8fb928029
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ struct QKeyBinding
class QKeySequencePrivate
{
public:
enum { MaxKeyCount = 4 }; // also used in QKeySequenceEdit
static constexpr int MaxKeyCount = 4 ; // also used in QKeySequenceEdit
constexpr QKeySequencePrivate() : ref(1), key{} {}
inline QKeySequencePrivate(const QKeySequencePrivate &copy) : ref(1)
{