summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØystein Heskestad <oystein.heskestad@qt.io>2021-05-11 12:31:34 +0200
committerØystein Heskestad <oystein.heskestad@qt.io>2021-05-12 10:08:09 +0200
commita14edbe673a9c64b1810412299acc04c53a9d3f2 (patch)
tree8c00668891e7e864c49324f1daf4f694f0026a14
parent491d4e8dd223f428b95e8a26af2c44692687f248 (diff)
downloadqtwebchannel-a14edbe673a9c64b1810412299acc04c53a9d3f2.tar.gz
Remove two compilation warnings in test on macOS
Change-Id: I4d05e00b02ca88f961b06ee0ee0d2109ef9a4d55 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
-rw-r--r--tests/auto/webchannel/tst_webchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.cpp b/tests/auto/webchannel/tst_webchannel.cpp
index e4cbfbf..4f7949e 100644
--- a/tests/auto/webchannel/tst_webchannel.cpp
+++ b/tests/auto/webchannel/tst_webchannel.cpp
@@ -1036,7 +1036,7 @@ void TestWebChannel::testQProperty()
publisher->initializeClient(&transport);
// One bindable property should result in one observer
- QCOMPARE(publisher->propertyObservers.count(&testObj), 1);
+ QCOMPARE(publisher->propertyObservers.count(&testObj), 1u);
QVariant result;
publisher->setClientIsIdle(true);
@@ -1066,7 +1066,7 @@ void TestWebChannel::testQProperty()
// Ensure that the observer has been removed after the object has been
// destroyed
- QCOMPARE(publisher->propertyObservers.size(), 0);
+ QCOMPARE(publisher->propertyObservers.size(), 0u);
}
void TestWebChannel::testPropertyUpdateInterval_data()