diff options
Diffstat (limited to 'tests/auto/tools')
-rw-r--r-- | tests/auto/tools/moc/allmocs_baseline_in.json | 10 | ||||
-rw-r--r-- | tests/auto/tools/moc/task189996.h | 8 | ||||
-rw-r--r-- | tests/auto/tools/moc/tst_moc.cpp | 12 |
3 files changed, 4 insertions, 26 deletions
diff --git a/tests/auto/tools/moc/allmocs_baseline_in.json b/tests/auto/tools/moc/allmocs_baseline_in.json index 12a4a22a19..18282505e4 100644 --- a/tests/auto/tools/moc/allmocs_baseline_in.json +++ b/tests/auto/tools/moc/allmocs_baseline_in.json @@ -689,16 +689,6 @@ "access": "public", "name": "c", "returnType": "void" - }, - { - "access": "public", - "name": "d", - "returnType": "void" - }, - { - "access": "public", - "name": "e", - "returnType": "void" } ], "superClasses": [ diff --git a/tests/auto/tools/moc/task189996.h b/tests/auto/tools/moc/task189996.h index f94a051b3a..ba9450c271 100644 --- a/tests/auto/tools/moc/task189996.h +++ b/tests/auto/tools/moc/task189996.h @@ -37,11 +37,9 @@ class InlineSlotsWithThrowDeclaration : public QObject Q_OBJECT public slots: - void a() throw() { } - void b() const throw() { } - void c() throw(); - void d() throw(int) { } - void e() const throw(int,double) { } + void a() noexcept { } + void b() const noexcept { } + void c() noexcept; }; #endif diff --git a/tests/auto/tools/moc/tst_moc.cpp b/tests/auto/tools/moc/tst_moc.cpp index c716aead21..cc465a213a 100644 --- a/tests/auto/tools/moc/tst_moc.cpp +++ b/tests/auto/tools/moc/tst_moc.cpp @@ -41,7 +41,6 @@ #include "single_function_keyword.h" #include "backslash-newlines.h" #include "slots-with-void-template.h" -#include "pure-virtual-signals.h" #include "qinvokable.h" // msvc and friends crap out on it #if !defined(Q_CC_GNU) || defined(Q_OS_WIN) @@ -631,7 +630,6 @@ public: private slots: void initTestCase(); - void slotWithException() throw(MyStruct); void dontStripNamespaces(); void oldStyleCasts(); void warnOnExtraSignalSlotQualifiaction(); @@ -784,12 +782,6 @@ void tst_Moc::initTestCase() #endif } -void tst_Moc::slotWithException() throw(MyStruct) -{ - // be happy - QVERIFY(true); -} - void tst_Moc::dontStripNamespaces() { Sender sender; @@ -1595,7 +1587,7 @@ void tst_Moc::qprivateproperties() #include "task189996.h" -void InlineSlotsWithThrowDeclaration::c() throw() {} +void InlineSlotsWithThrowDeclaration::c() noexcept {} void tst_Moc::inlineSlotsWithThrowDeclaration() { @@ -1604,8 +1596,6 @@ void tst_Moc::inlineSlotsWithThrowDeclaration() QVERIFY(mobj->indexOfSlot("a()") != -1); QVERIFY(mobj->indexOfSlot("b()") != -1); QVERIFY(mobj->indexOfSlot("c()") != -1); - QVERIFY(mobj->indexOfSlot("d()") != -1); - QVERIFY(mobj->indexOfSlot("e()") != -1); } void tst_Moc::warnOnPropertyWithoutREAD() |