diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-04-06 11:11:34 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-06-04 22:43:59 +0200 |
commit | 1a3c9df90ac3aa40d21d067911e34e81abba0234 (patch) | |
tree | 4e546b716a06449631cb49f0f2d7383e7a02fac5 /tests/auto/corelib/kernel | |
parent | 34ae919f23b7d89844358afea23c73dc6469faf3 (diff) |
tst_qobject: fix build when exceptions are disabled
Change-Id: Id98d39b4cc14608661a53df7e5c5bba5fb875022
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'tests/auto/corelib/kernel')
-rw-r--r-- | tests/auto/corelib/kernel/qobject/tst_qobject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp index 68d218d87b..917c4e639f 100644 --- a/tests/auto/corelib/kernel/qobject/tst_qobject.cpp +++ b/tests/auto/corelib/kernel/qobject/tst_qobject.cpp @@ -6777,8 +6777,10 @@ public: explicit CountedExceptionThrower(bool throwException, QObject *parent = nullptr) : QObject(parent) { +#ifndef QT_NO_EXCEPTIONS if (throwException) throw ObjectException(); +#endif ++counter; } |