From eaa134c94ec5d2cf0e63921e708e14fd75258232 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 26 Aug 2019 13:38:08 +0200 Subject: [PATCH] QString::remove operates on the same object, no need to reassign --- autotests/favoritestest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/favoritestest.cpp b/autotests/favoritestest.cpp index ce1974e..2f8c8c6 100644 --- a/autotests/favoritestest.cpp +++ b/autotests/favoritestest.cpp @@ -101,7 +101,7 @@ void FavoriteProxyTest::testReordering() const Akonadi::Collection favoriteCollection = index.data(EntityTreeModel::CollectionRole).value(); QVERIFY(favoriteCollection.isValid()); collectionIds.push_back(favoriteCollection.id()); - order.push_back(QStringLiteral("c") + QString::number(favoriteCollection.id())); + order.push_back(QLatin1Char('c') + QString::number(favoriteCollection.id())); labels << folderName; }