From 49cf0b94597ce41484c130c3d3666de9e25cfe30 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 11 Oct 2021 14:45:00 +0200 Subject: Re-enable QT_NO_NARROWING_CONVERSIONS_IN_CONNECT for Qt This define used to be set for the entirety of the Qt build but was lost during the qmake->CMake transition. Re-enable it. Change-Id: Idc4cb6ada485158559485b60f62f76439550b255 Pick-to: 6.2 Reviewed-by: Alexandru Croitor Reviewed-by: Qt CI Bot --- tests/auto/corelib/kernel/qobject/tst_qobject.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auto/corelib/kernel/qobject/tst_qobject.cpp') diff --git a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp index a06bb5caab..d5dbb7e1fc 100644 --- a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp +++ b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp @@ -27,6 +27,11 @@ ** ****************************************************************************/ +// This test actually wants to practice narrowing conditions, so never define this. +#ifdef QT_NO_NARROWING_CONVERSIONS_IN_CONNECT +#undef QT_NO_NARROWING_CONVERSIONS_IN_CONNECT +#endif + #include #include #include -- cgit v1.2.3