Commit 1b663b1f authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 15b15d4c
......@@ -560,9 +560,7 @@ Geo Address::geo() const
QString Address::toString() const
{
QString str;
str += QLatin1String("Address {\n");
QString str = QLatin1String("Address {\n");
str += QStringLiteral(" IsEmpty: %1\n").
arg(d->mEmpty ? QStringLiteral("true") : QStringLiteral("false"));
str += QStringLiteral(" Id: %1\n").arg(d->mId);
......
......@@ -1919,9 +1919,7 @@ Key Addressee::findKey(const QString &id) const
QString Addressee::toString() const
{
QString str;
str += QLatin1String("Addressee {\n");
QString str = QLatin1String("Addressee {\n");
str += QStringLiteral(" Uid: %1\n").arg(uid());
str += QStringLiteral(" Name: %1\n").arg(name());
......
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