diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-02-16 15:18:07 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2021-02-22 20:53:31 +0100 |
commit | f050979e3d71cbb72a3b4d75f5e9898d81806487 (patch) | |
tree | 4e1498751ed9f3e7b404263cb511ff0cfda0a86a /tests/auto/integration/tst_integration.cpp | |
parent | 98b3171bbee84323640be24da230cf1c9b7d5cce (diff) |
Clean-up warnings
Fixed the following warnings:
- empty expression statement has no effect; remove unnecessary ';'
- use of old-style cast
- zero as null pointer constant
- other minor things
Change-Id: Ia672f48d2aa87c59354fc93fd19862f1875e13db
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/integration/tst_integration.cpp')
-rw-r--r-- | tests/auto/integration/tst_integration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/integration/tst_integration.cpp b/tests/auto/integration/tst_integration.cpp index 3be8587..591cc30 100644 --- a/tests/auto/integration/tst_integration.cpp +++ b/tests/auto/integration/tst_integration.cpp @@ -339,7 +339,7 @@ private slots: const QScopedPointer<TestClassReplica> tc_rep(client->acquire<TestClassReplica>()); tc_rep->waitForSource(); QCOMPARE(tc.testEnum(), tc_rep->testEnum()); - QCOMPARE((qint32)tc.classEnum(), (qint32)TestClassSimpleSource::One); + QCOMPARE(qint32(tc.classEnum()), qint32(TestClassSimpleSource::One)); // set property on the replica (test property change packet) { @@ -348,7 +348,7 @@ private slots: tc_rep->pushClassEnum(TestClassReplica::Two); QVERIFY(spy.count() || spy.wait()); - QCOMPARE((qint32)tc.classEnum(), (qint32)tc_rep->classEnum()); + QCOMPARE(qint32(tc.classEnum()), qint32(tc_rep->classEnum())); } // set property on the source (test property change packet) @@ -357,7 +357,7 @@ private slots: tc.setClassEnum(TestClassSimpleSource::One); QVERIFY(spy.wait()); - QCOMPARE((qint32)tc.classEnum(), (qint32)tc_rep->classEnum()); + QCOMPARE(qint32(tc.classEnum()), qint32(tc_rep->classEnum())); } QScopedPointer<QRemoteObjectDynamicReplica> tc_repDynamic(client->acquireDynamic(QStringLiteral("TestClass"))); |