aboutsummaryrefslogtreecommitdiff
path: root/tests/qxmpppushenableiq
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-04-01 16:46:36 +0200
committerLinus Jahn <lnj@kaidan.im>2020-04-01 16:57:09 +0200
commit7f87ccbec9ddcfb923d8ae9840a2c7ebe885ebe2 (patch)
tree50a7a9cabcd4801bf92219239486ce5dd54cc4d9 /tests/qxmpppushenableiq
parent4c9b06545afee50b84bfae7a27bbe3dd48cc749a (diff)
downloadqxmpp-7f87ccbec9ddcfb923d8ae9840a2c7ebe885ebe2.tar.gz
tests: Fix build with Qt 5.9
QCOMPARE(QString(), "") doesn't work there.
Diffstat (limited to 'tests/qxmpppushenableiq')
-rw-r--r--tests/qxmpppushenableiq/tst_qxmpppushenableiq.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/qxmpppushenableiq/tst_qxmpppushenableiq.cpp b/tests/qxmpppushenableiq/tst_qxmpppushenableiq.cpp
index f45c0333..c6ac23f7 100644
--- a/tests/qxmpppushenableiq/tst_qxmpppushenableiq.cpp
+++ b/tests/qxmpppushenableiq/tst_qxmpppushenableiq.cpp
@@ -48,8 +48,8 @@ void tst_QXmppPushEnableIq::testPushEnable()
QXmppPushEnableIq iq;
parsePacket(iq, xml);
QCOMPARE(iq.mode(), QXmppPushEnableIq::Enable);
- QCOMPARE(iq.jid(), "push-5.client.example");
- QCOMPARE(iq.node(), "yxs32uqsflafdk3iuqo");
+ QCOMPARE(iq.jid(), QStringLiteral("push-5.client.example"));
+ QCOMPARE(iq.node(), QStringLiteral("yxs32uqsflafdk3iuqo"));
serializePacket(iq, xml);
@@ -73,7 +73,7 @@ void tst_QXmppPushEnableIq::testPushDisable()
QXmppPushEnableIq iq;
parsePacket(iq, xml);
QCOMPARE(iq.mode(), QXmppPushEnableIq::Disable);
- QCOMPARE(iq.jid(), "push-5.client.example");
+ QCOMPARE(iq.jid(), QStringLiteral("push-5.client.example"));
serializePacket(iq, xml);