qt_noop is not defined in the qt-namespace

Causes compilation errors when qt_noop is used, like from QT_THROW when
compiling without exceptions.

Amends 88f2d7aacb17119aebc701fbf10f9c89d4e9b79a

Fixes: QTBUG-137104
Change-Id: I377e278bd6a1b5a4a3b5a58d52d5205fb9545ec5
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Mårten Nordheim 2025-05-22 15:59:35 +02:00 committed by Thiago Macieira
parent a6caa394ba
commit 31d84ed739

View File

@ -64,7 +64,7 @@ Q_CORE_EXPORT void qBadAlloc();
#ifdef QT_NO_EXCEPTIONS
# if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
# define Q_CHECK_PTR(p) QT_PREPEND_NAMESPACE(qt_noop)()
# define Q_CHECK_PTR(p) qt_noop()
# else
# define Q_CHECK_PTR(p) do {if (!(p)) QT_PREPEND_NAMESPACE(qt_check_pointer)(__FILE__,__LINE__);} while (false)
# endif