diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2025-01-16 17:09:56 +0100 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2025-01-17 17:02:52 +0100 |
| commit | 9a1a828ae535645f98d0ba9fc7c0c429097a2ac4 (patch) | |
| tree | 368ba5ee4d5907f0f6040b20517078faf730920b /src/corelib/tools/qcommandlineparser.h | |
| parent | 40f7454c919501f3c984c8fe4eeb379b360d4789 (diff) | |
QCommandLineParser: convert MessageType to enum class
Amends bad618606d64e943e3fa78e7d1dbc8e1fab55480.
Found in Qt 6.9 API review.
Pick-to: 6.9
Change-Id: I424fc1f80e36343f1aef4b05c551579ec0f04eba
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.h')
| -rw-r--r-- | src/corelib/tools/qcommandlineparser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/tools/qcommandlineparser.h b/src/corelib/tools/qcommandlineparser.h index cdf7c20617f..576a783320d 100644 --- a/src/corelib/tools/qcommandlineparser.h +++ b/src/corelib/tools/qcommandlineparser.h @@ -67,9 +67,9 @@ public: Q_NORETURN void showHelp(int exitCode = 0); QString helpText() const; - enum MessageType : quint32 { - InformationMessage, - ErrorMessage, + enum class MessageType { + Information, + Error, }; [[noreturn]] static void showMessageAndExit(MessageType type, const QString &message, int exitCode = 0); |
