diff options
| author | Ivan Solovev <ivan.solovev@qt.io> | 2025-01-13 12:18:47 +0100 |
|---|---|---|
| committer | Ivan Solovev <ivan.solovev@qt.io> | 2025-01-13 19:23:10 +0100 |
| commit | 8472004a895fa98e68f6f3ff134720904a00c150 (patch) | |
| tree | 6f1ec37d0e4ad1c03223907528b2a24d8e1a9595 /src/corelib/tools/qcommandlineparser.h | |
| parent | 8de8800670d2881c6dfe957d6a1c5d925417b85c (diff) | |
Use [[noreturn]] on QCommandLineParser::showMessageAndExit()
... instead of Q_NORETURN, as the attribute should be unconditionally
available since C++11.
Amends bad618606d64e943e3fa78e7d1dbc8e1fab55480.
Found in Qt 6.9 API review.
Pick-to: 6.9
Change-Id: Ia008acf0777867f551c7e1cc3423f29f8ed6fbed
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.h')
| -rw-r--r-- | src/corelib/tools/qcommandlineparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qcommandlineparser.h b/src/corelib/tools/qcommandlineparser.h index 1efcf41b578..cdf7c20617f 100644 --- a/src/corelib/tools/qcommandlineparser.h +++ b/src/corelib/tools/qcommandlineparser.h @@ -71,7 +71,7 @@ public: InformationMessage, ErrorMessage, }; - Q_NORETURN static void showMessageAndExit(MessageType type, const QString &message, int exitCode = 0); + [[noreturn]] static void showMessageAndExit(MessageType type, const QString &message, int exitCode = 0); private: Q_DISABLE_COPY(QCommandLineParser) |
