diff --git a/tests/auto/functional/orm/tiny/model/tst_model.cpp b/tests/auto/functional/orm/tiny/model/tst_model.cpp index 85c241eb8..1a3ff1556 100644 --- a/tests/auto/functional/orm/tiny/model/tst_model.cpp +++ b/tests/auto/functional/orm/tiny/model/tst_model.cpp @@ -1353,13 +1353,13 @@ void tst_Model::create_Failed() const Torrent torrent; QVERIFY_THROWS_EXCEPTION(QueryError, - (torrent = Torrent::create({ + torrent = Torrent::create({ {"name-NON_EXISTENT", "test100"}, {SIZE_, 100}, {Progress, 333}, {AddedOn, addedOn}, {HASH_, "1009e3af2768cdf52ec84c1f320333f68401dc6e"}, - }))); + })); QVERIFY(!torrent.exists); QVERIFY(torrent.getAttributes().isEmpty()); diff --git a/tests/auto/functional/orm/tiny/model_conn_indep/tst_model_connection_independent.cpp b/tests/auto/functional/orm/tiny/model_conn_indep/tst_model_connection_independent.cpp index f373d8733..ca62a7312 100644 --- a/tests/auto/functional/orm/tiny/model_conn_indep/tst_model_connection_independent.cpp +++ b/tests/auto/functional/orm/tiny/model_conn_indep/tst_model_connection_independent.cpp @@ -230,7 +230,7 @@ defaultAttributeValues_WithQDateTime_ListInitializationCtor() const /* List initialization using the std::initializer_list must throw because of the QDateTime. */ QVERIFY_THROWS_EXCEPTION(InvalidArgumentError, - (Torrent_With_QDateTime { + Torrent_With_QDateTime({ {NAME, "test22"}, {NOTE, "Torrent::instance()"}, })); diff --git a/tests/auto/functional/orm/tiny/model_relations/tst_model_relations.cpp b/tests/auto/functional/orm/tiny/model_relations/tst_model_relations.cpp index 3a1310a54..5ebce08a4 100644 --- a/tests/auto/functional/orm/tiny/model_relations/tst_model_relations.cpp +++ b/tests/auto/functional/orm/tiny/model_relations/tst_model_relations.cpp @@ -419,23 +419,23 @@ void tst_Model_Relations::getRelation_EagerLoad_Failed() const // Many relation QVERIFY_THROWS_EXCEPTION( RelationNotLoadedError, - (torrent.getRelation("torrentFiles"))); + torrent.getRelation("torrentFiles")); // One relation, obtained as QList, also possible QVERIFY_THROWS_EXCEPTION( RelationNotLoadedError, - (torrent.getRelation("torrentFiles"))); + torrent.getRelation("torrentFiles")); // Many relation QVERIFY_THROWS_EXCEPTION( RelationNotLoadedError, - (torrent.getRelation("torrentFiles"))); + torrent.getRelation("torrentFiles")); // BelongsTo relation QVERIFY_THROWS_EXCEPTION( RelationNotLoadedError, - (TorrentPeer().getRelation("torrent"))); + TorrentPeer().getRelation("torrent")); // BelongsToMany relation QVERIFY_THROWS_EXCEPTION( RelationNotLoadedError, - (torrent.getRelation("tags"))); + torrent.getRelation("tags")); } void tst_Model_Relations::eagerLoad_Failed() const @@ -935,8 +935,8 @@ void tst_Model_Relations::with_Vector_MoreRelations() const // No TorrentPreviewableFileProperty loaded QVERIFY_THROWS_EXCEPTION( RuntimeError, - (file->getRelation( - "fileProperty"))); + file->getRelation( + "fileProperty")); } }