tst_qobject: fix build when exceptions are disabled
Change-Id: Id98d39b4cc14608661a53df7e5c5bba5fb875022 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
34ae919f23
commit
1a3c9df90a
@ -6777,8 +6777,10 @@ public:
|
|||||||
explicit CountedExceptionThrower(bool throwException, QObject *parent = nullptr)
|
explicit CountedExceptionThrower(bool throwException, QObject *parent = nullptr)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
{
|
{
|
||||||
|
#ifndef QT_NO_EXCEPTIONS
|
||||||
if (throwException)
|
if (throwException)
|
||||||
throw ObjectException();
|
throw ObjectException();
|
||||||
|
#endif
|
||||||
++counter;
|
++counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user