aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-07-13 18:54:43 +0200
committerMontel Laurent <[email protected]>2016-07-13 18:54:43 +0200
commitd317a8d6a2234863b6210c4c5196c7987cedf2ff (patch)
tree3fd92acb3640d669988cf3d3af1a9974cb2179cc
parent14f5b564a506e1da7ee740ce9ce0adf0c13837a2 (diff)
Minor optimization
-rw-r--r--src/vcardtool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vcardtool.cpp b/src/vcardtool.cpp
index 1b6de91..5120c33 100644
--- a/src/vcardtool.cpp
+++ b/src/vcardtool.cpp
@@ -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 );