Commit 35c940d9 authored by Laurent Montel's avatar Laurent Montel 😁

Not necessary to use += here

parent d9008b1a
......@@ -91,9 +91,7 @@ QString CompactStyle::contactsToHtml(const KContacts::Addressee::List &contacts)
fields << KAddressBookImportExport::KAddressBookImportExportContactFields::Birthday;
}
QString content;
content += QLatin1String("<html>\n");
QString content = QLatin1String("<html>\n");
content += QLatin1String(" <body>\n");
content += QLatin1String(" <table style=\"font-size:50%; border-width: 0px; \"width=\"100%\">\n");
......
......@@ -59,9 +59,7 @@ struct ColorSettings {
QString contactsToHtml(const KContacts::Addressee::List &contacts, const ColorSettings &settings)
{
QString content;
content += QLatin1String("<html>\n");
QString content = QLatin1String("<html>\n");
content += QLatin1String(" <head>\n");
content += QLatin1String(" <style type=\"text/css\">\n");
content += QLatin1String(" td.indented {\n");
......
......@@ -40,7 +40,6 @@ using namespace KABPrinting;
static QString contactsToHtml(const KContacts::Addressee::List &contacts)
{
QString content;
KAddressBookImportExport::KAddressBookImportExportContactFields::Fields leftFields, rightFields;
KAddressBookImportExport::KAddressBookImportExportContactFields::Fields allFields = KAddressBookImportExport::KAddressBookImportExportContactFields::allFields();
......@@ -59,7 +58,7 @@ static QString contactsToHtml(const KContacts::Addressee::List &contacts)
}
int counter = 0;
content += QLatin1String("<html>\n");
QString content = QLatin1String("<html>\n");
content += QLatin1String(" <body>\n");
for (const KContacts::Addressee &contact : contacts) {
const int max = qMax(leftFields.count(), rightFields.count());
......
......@@ -57,9 +57,7 @@ enum PrintField {
static QString contactsToHtml(const KContacts::Addressee::List &contacts, int fields)
{
QString content;
content += QLatin1String("<html>\n");
QString content = QLatin1String("<html>\n");
content += QLatin1String(" <body>\n");
content += QLatin1String(" <table style=\"border-width: 1px; border-style: solid; "
"border-color: gray;\" width=\"100%\" cellspacing=\"0\">\n");
......
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