Commit d317a8d6 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 14f5b564
......@@ -720,8 +720,8 @@ Addressee::List VCardTool::parseVCards(const QByteArray &vcard) const
}
address.setType(type);
if (!(*lineIt).parameter(QStringLiteral("label")).isEmpty()) {
QString label = (*lineIt).parameter(QStringLiteral("label"));
QString label = (*lineIt).parameter(QStringLiteral("label"));
if (!label.isEmpty()) {
if (label.length() > 1) {
if (label.at(0) == QLatin1Char('"') && label.at(label.length() - 1) == QLatin1Char('"')) {
label = label.mid(1, label.length() - 2 );
......
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