Skip to content

Commit

Permalink
Specify an underlying type for QCommandLineParser::MessageType
Browse files Browse the repository at this point in the history
And also add a trailing comma to the last element of the enum to
minimize future diffs.

Amends bad6186.

Found in Qt 6.9 API review.

Pick-to: 6.9
Change-Id: I1a30c344967005c9abc73e59980e56626e09cd7c
Reviewed-by: David Faure <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
isolovev committed Dec 17, 2024
1 parent 2e80e74 commit 14cc259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corelib/tools/qcommandlineparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class Q_CORE_EXPORT QCommandLineParser
Q_NORETURN void showHelp(int exitCode = 0);
QString helpText() const;

enum MessageType {
enum MessageType : quint32 {
InformationMessage,
ErrorMessage
ErrorMessage,
};
Q_NORETURN static void showMessageAndExit(const QString &message, MessageType type, int exitCode = 0);

Expand Down

0 comments on commit 14cc259

Please sign in to comment.