Commit 883cc4c5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: replace old QLatin1Literal by QLatin1String

parent 54ac4186
......@@ -424,13 +424,13 @@ void StringUtilTest::test_parseDuplicateQueryItems()
QCOMPARE(values.size(), 5);
int valueCC = 0;
for (int i = 0; i < values.size(); ++i) {
if (values.at(i).first == QLatin1Literal("to")) {
if (values.at(i).first == QLatin1String("to")) {
QCOMPARE(values.at(i).second, QLatin1String("test@test.com"));
} else if (values.at(i).first == QLatin1Literal("subject")) {
} else if (values.at(i).first == QLatin1String("subject")) {
QCOMPARE(values.at(i).second, QLatin1String("test"));
} else if (values.at(i).first == QLatin1Literal("body")) {
} else if (values.at(i).first == QLatin1String("body")) {
QCOMPARE(values.at(i).second, QLatin1String("line1\r\nline2"));
} else if (values.at(i).first == QLatin1Literal("cc")) {
} else if (values.at(i).first == QLatin1String("cc")) {
const QString ccVal = values.at(i).second;
valueCC++;
if ((ccVal != QLatin1String("someone_else@example.com")) && (ccVal != QLatin1String("someone_else2@example.com"))) {
......
......@@ -1389,7 +1389,7 @@ void ModelPrivate::attachMessageToGroupHeader(MessageItem *mi)
monthName = mCachedMonthNameLabel.insert(dDate.month(), QLocale::system().standaloneMonthName(dDate.month()));
}
groupLabel = i18nc("Message Aggregation Group Header: Month name and Year number", "%1 %2", *monthName,
QLocale::system().toString(dDate, QLatin1Literal("yyyy")));
QLocale::system().toString(dDate, QLatin1String("yyyy")));
}
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment