From bd40a67aab5f843295c043ac164bd931cf107d15 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 3 Jul 2023 08:06:31 +0200 Subject: [PATCH] QCoreApplication: mark instance() as noexcept QEventLoopLocker's own noexcept depends on this. Task-number: QTBUG-114793 Pick-to: 6.6 Change-Id: If1ba3aaa2f0bbb6334d52dd44db84d138890f4bb Reviewed-by: Giuseppe D'Angelo Reviewed-by: Thiago Macieira --- src/corelib/kernel/qcoreapplication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qcoreapplication.h b/src/corelib/kernel/qcoreapplication.h index aa9fe58e2e..5a7dc46a3f 100644 --- a/src/corelib/kernel/qcoreapplication.h +++ b/src/corelib/kernel/qcoreapplication.h @@ -88,7 +88,7 @@ public: static void setSetuidAllowed(bool allow); static bool isSetuidAllowed(); - static QCoreApplication *instance() { return self; } + static QCoreApplication *instance() noexcept { return self; } #ifndef QT_NO_QOBJECT static int exec();