aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2020-10-10 19:56:52 +0200
committerLNJ <lnj@kaidan.im>2020-10-10 20:12:09 +0200
commita982cd02ec3e1ff37c248ea0d3c36e79f3a45ad5 (patch)
tree45c86227ae89e05f80e64a5017edd73359a91d46 /tests
parent2298886f4d75adbc351b448274b39edf54da38ee (diff)
downloadqxmpp-a982cd02ec3e1ff37c248ea0d3c36e79f3a45ad5.tar.gz
Disable foreach also in examples and tests
Diffstat (limited to 'tests')
-rw-r--r--tests/qxmppregistrationmanager/tst_qxmppregistrationmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qxmppregistrationmanager/tst_qxmppregistrationmanager.cpp b/tests/qxmppregistrationmanager/tst_qxmppregistrationmanager.cpp
index 497560f7..34cd3ff5 100644
--- a/tests/qxmppregistrationmanager/tst_qxmppregistrationmanager.cpp
+++ b/tests/qxmppregistrationmanager/tst_qxmppregistrationmanager.cpp
@@ -510,7 +510,7 @@ void tst_QXmppRegistrationManager::sendStreamFeaturesToManager(bool registration
// hacky hack to include stream namespace
QByteArray manipulatedXml = buffer.data();
manipulatedXml.replace("stream:", QByteArray());
- manipulatedXml.insert(9, QStringLiteral(" xmlns=\"%1\"").arg("http://etherx.jabber.org/streams"));
+ manipulatedXml.insert(9, QByteArrayLiteral(" xmlns=\"http://etherx.jabber.org/streams\""));
QDomDocument doc;
doc.setContent(manipulatedXml, true);
@@ -522,7 +522,7 @@ void tst_QXmppRegistrationManager::sendStreamFeaturesToManager(bool registration
void tst_QXmppRegistrationManager::setManagerConfig(const QString &username, const QString &server, const QString &password)
{
- client.connectToServer(username + QStringLiteral("@") + server, password);
+ client.connectToServer(username + u'@' + server, password);
client.disconnectFromServer();
}