summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-24 06:47:37 +0200
committerMontel Laurent <[email protected]>2017-04-24 06:47:37 +0200
commit35c940d9d62aa1754cf99149c29c6a9c450837f2 (patch)
tree6fbda4e04708564fe26843036ce35242bd415d9b
parentd9008b1a5e62195d240472d2debb04cba5d1ca6e (diff)
Not necessary to use += here
-rw-r--r--src/printing/compact/compactstyle.cpp4
-rw-r--r--src/printing/detailled/detailledstyle.cpp4
-rw-r--r--src/printing/mike/mikesstyle.cpp3
-rw-r--r--src/printing/ringbinder/ringbinderstyle.cpp4
4 files changed, 4 insertions, 11 deletions
diff --git a/src/printing/compact/compactstyle.cpp b/src/printing/compact/compactstyle.cpp
index bbcab03..0d79361 100644
--- a/src/printing/compact/compactstyle.cpp
+++ b/src/printing/compact/compactstyle.cpp
@@ -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");
diff --git a/src/printing/detailled/detailledstyle.cpp b/src/printing/detailled/detailledstyle.cpp
index 267255b..fea7b96 100644
--- a/src/printing/detailled/detailledstyle.cpp
+++ b/src/printing/detailled/detailledstyle.cpp
@@ -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");
diff --git a/src/printing/mike/mikesstyle.cpp b/src/printing/mike/mikesstyle.cpp
index 12f740d..f772744 100644
--- a/src/printing/mike/mikesstyle.cpp
+++ b/src/printing/mike/mikesstyle.cpp
@@ -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());
diff --git a/src/printing/ringbinder/ringbinderstyle.cpp b/src/printing/ringbinder/ringbinderstyle.cpp
index cf9ee79..2850180 100644
--- a/src/printing/ringbinder/ringbinderstyle.cpp
+++ b/src/printing/ringbinder/ringbinderstyle.cpp
@@ -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");