summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-08-20 17:54:10 (GMT)
committerMontel Laurent <montel@kde.org>2016-08-20 17:54:10 (GMT)
commiteb2e90f0a7188eb33f74c459c28e941f2e53081f (patch)
tree49e156c75f510e3a2870f5132f98f00ab0ffd35a
parentdc229047663cb9e7568159c4a4a9256db78747b4 (diff)
Use QString() directly
-rw-r--r--autotests/datetimetest.cpp2
-rw-r--r--src/vcardtool.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/autotests/datetimetest.cpp b/autotests/datetimetest.cpp
index f4692fa..8517f00 100644
--- a/autotests/datetimetest.cpp
+++ b/autotests/datetimetest.cpp
@@ -120,7 +120,7 @@ void DateTimeTest::shouldCreateDateTime()
dt = QDateTime(QDate(), QTime(12, 33, 30), Qt::OffsetFromUTC, -2 * 3600);
str = VCardTool::createDateTime(dt, VCard::v3_0);
- expected = QStringLiteral("");
+ expected = QString();
QCOMPARE(str, expected);
}
diff --git a/src/vcardtool.cpp b/src/vcardtool.cpp
index b0bcb71..aa5654d 100644
--- a/src/vcardtool.cpp
+++ b/src/vcardtool.cpp
@@ -1186,7 +1186,7 @@ QDateTime VCardTool::parseDateTime(const QString &str, bool *timeValid)
const QStringList strings = str.split(QLatin1Char('T'));
QString dateString = strings.at(0);
- dateString = dateString.replace(QLatin1String("-"), QLatin1String(""));
+ dateString = dateString.replace(QLatin1String("-"), QString());
QDate date = QDate::fromString(dateString, QStringLiteral("yyyyMMdd"));
QTime time;