1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor(Qt): use 'QLatin1String' instead of 'QLatin1Literal' part 2

This is required when building against Qt 5.14.
This commit is contained in:
Jimi Huotari 2019-09-25 12:19:18 +03:00
parent df27f49677
commit 4f83187ce0

View File

@ -54,8 +54,8 @@ private slots:
void TestMessageProcessor::testSelfMention() void TestMessageProcessor::testSelfMention()
{ {
MessageProcessor::SharedParams sharedParams; MessageProcessor::SharedParams sharedParams;
const QLatin1Literal testUserName{"MyUserName"}; const QLatin1String testUserName{"MyUserName"};
const QLatin1Literal testToxPk{ const QLatin1String testToxPk{
"0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"}; "0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF"};
sharedParams.onUserNameSet(testUserName); sharedParams.onUserNameSet(testUserName);
sharedParams.setPublicKey(testToxPk); sharedParams.setPublicKey(testToxPk);