diff options
author | David Edmundson <kde@davidedmundson.co.uk> | 2016-04-26 15:10:44 +0100 |
---|---|---|
committer | David Edmundson <kde@davidedmundson.co.uk> | 2016-04-26 15:10:44 +0100 |
commit | 15374115fa910ffa41ac2acce71b7f4fc0937674 (patch) | |
tree | 8c084a54ba17b2d7b99f9d4d652c4962babad16f /tests/dbus | |
parent | 3e1f8a3954cbd624907ca7ebcd2f23090cc88189 (diff) |
Use C++ bool type rather than mixing with gboolean
They are not always the same size.
This fixes a compile error on some systems.
Diffstat (limited to 'tests/dbus')
-rw-r--r-- | tests/dbus/contacts-capabilities.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dbus/contacts-capabilities.cpp b/tests/dbus/contacts-capabilities.cpp index 72ea95e8..0095f85e 100644 --- a/tests/dbus/contacts-capabilities.cpp +++ b/tests/dbus/contacts-capabilities.cpp @@ -111,7 +111,7 @@ void TestContactsCapabilities::testCapabilities() QStringList ids = QStringList() << QLatin1String("alice") << QLatin1String("bob") << QLatin1String("chris"); - gboolean supportTextChat[] = { TRUE, FALSE, FALSE }; + bool supportTextChat[] = { true, false, false}; TpHandleRepoIface *serviceRepo = tp_base_connection_get_handles(TP_BASE_CONNECTION(mConn->service()), @@ -135,7 +135,7 @@ void TestContactsCapabilities::testCapabilities() QCOMPARE(contact->requestedFeatures().contains(Contact::FeatureCapabilities), true); QCOMPARE(contact->actualFeatures().contains(Contact::FeatureCapabilities), true); - QCOMPARE(contact->capabilities().textChats(), static_cast<bool>(supportTextChat[i])); + QCOMPARE(contact->capabilities().textChats(), supportTextChat[i]); QCOMPARE(contact->capabilities().streamedMediaCalls(), false); QCOMPARE(contact->capabilities().streamedMediaAudioCalls(), false); QCOMPARE(contact->capabilities().streamedMediaVideoCalls(), false); |