tst_qobject: fix build when exceptions are disabled

Change-Id: Id98d39b4cc14608661a53df7e5c5bba5fb875022
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Fabian Kosmale 2020-04-06 11:11:34 +02:00
parent 34ae919f23
commit 1a3c9df90a

View File

@ -6777,8 +6777,10 @@ public:
explicit CountedExceptionThrower(bool throwException, QObject *parent = nullptr)
: QObject(parent)
{
#ifndef QT_NO_EXCEPTIONS
if (throwException)
throw ObjectException();
#endif
++counter;
}