Commit 199f94e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

compile against qt5.15

parent eeaa6b35
......@@ -265,7 +265,7 @@ void GMXImportExportPluginInterface::doExport(QFile *fp, const KContacts::Addres
<< dateString(addressee->revision()) << DELIM // Change_date
<< "1" << DELIM // Status
<< DELIM // Address_link_id
<< category << endl; // Categories
<< category << QLatin1Char('\n'); // Categories
}
t << "####\n";
......@@ -424,25 +424,25 @@ void GMXImportExportPluginInterface::doExport(QFile *fp, const KContacts::Addres
<< prefFlag << DELIM // Preferred:
// ( & 1: preferred email,
// & 4: preferred cell phone )
<< 1 << endl; // Status (should always be "1")
<< 1 << QLatin1Char('\n'); // Status (should always be "1")
}
}
++addresseeId;
}
t << "####" << endl;
t << "AB_CATEGORIES:" << endl;
t << "Category_id,Name,Icon_id" << endl;
t << "####" << QLatin1Char('\n');
t << "AB_CATEGORIES:" << QLatin1Char('\n');
t << "Category_id,Name,Icon_id" << QLatin1Char('\n');
// Write Category List (beware: Category_ID 0 is reserved for none
// Interestingly: The index here is an int sequence and does not
// correspond to the bit reference used above.
const int categoryCount(categoryMap.size());
for (int i = 0; i < categoryCount; ++i) {
t << (i + 1) << DELIM << categoryMap.at(i) << DELIM << 0 << endl;
t << (i + 1) << DELIM << categoryMap.at(i) << DELIM << 0 << QLatin1Char('\n');
}
t << "####" << endl;
t << "####" << QLatin1Char('\n');
}
void GMXImportExportPluginInterface::importGMX()
......
......@@ -84,9 +84,9 @@ AntiSpamWizard::AntiSpamWizard(WizardMode mode, QWidget *parent)
mToolList = reader.getToolList();
#ifndef NDEBUG
if (mMode == AntiSpam) {
qDebug() << endl << "Considered anti-spam tools:";
qDebug() << "\nConsidered anti-spam tools:";
} else {
qDebug() << endl << "Considered anti-virus tools:";
qDebug() << "\nConsidered anti-virus tools:";
}
QVector<SpamToolConfig>::ConstIterator end(mToolList.constEnd());
for (QVector<SpamToolConfig>::ConstIterator it = mToolList.constBegin();
......
......@@ -327,11 +327,11 @@ void AdBlockCustomList::loadSubscription(const QStringList &disabledRules)
stream.setCodec("UTF-8");
if (!rules.contains(ddg1 + QLatin1Char('\n'))) {
stream << ddg1 << endl;
stream << ddg1 << QLatin1Char('\n');
}
if (!rules.contains(QLatin1Char('\n') + ddg2)) {
stream << ddg2 << endl;
stream << ddg2 << QLatin1Char('\n');
}
}
file.close();
......@@ -363,12 +363,12 @@ void AdBlockCustomList::saveSubscription()
QTextStream textStream(&file);
textStream.setCodec("UTF-8");
textStream << "Title: " << title() << endl;
textStream << "Url: " << url().toString() << endl;
textStream << "[Adblock Plus 1.1.1]" << endl;
textStream << "Title: " << title() << QLatin1Char('\n');
textStream << "Url: " << url().toString() << QLatin1Char('\n');
textStream << "[Adblock Plus 1.1.1]" << QLatin1Char('\n');
for (const AdBlockRule *rule : qAsConst(mRules)) {
textStream << rule->filter() << endl;
textStream << rule->filter() << QLatin1Char('\n');
}
file.close();
......
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