Commit 292bdc0e authored by Laurent Montel's avatar Laurent Montel 😁

GIT_SILENT: coding style

parent 59878790
Pipeline #32629 passed with stage
in 28 minutes and 57 seconds
......@@ -55,7 +55,7 @@ public:
void initializePluginList();
void loadPlugin(CustomToolsPluginInfo *item);
QVector<CustomToolsPluginInfo> mPluginList;
CustomToolsPluginManager * const q;
CustomToolsPluginManager *const q;
};
void CustomToolsPluginManagerPrivate::initializePluginList()
......
......@@ -279,7 +279,7 @@ public:
QString knewstuffConfigName;
bool dirty = false;
KSharedConfig::Ptr config;
TemplateListWidget * const q;
TemplateListWidget *const q;
};
TemplateListWidget::TemplateListWidget(const QString &configName, QWidget *parent)
......
......@@ -17,7 +17,6 @@
#include "pimcommon_export.h"
//
//
// SimpleStringListEditor (a listbox with "add..." and "remove" buttons)
......
......@@ -111,14 +111,14 @@ void AclModifyJob::slotModifyAcl()
job->fetchScope().setAncestorRetrieval(Akonadi::CollectionFetchScope::All);
connect(job, &Akonadi::CollectionFetchJob::finished,
this, [this](KJob *job) {
if (job->error()) {
qCWarning(PIMCOMMONAKONADI_LOG) << job->errorString();
slotFetchCollectionFailed();
} else {
auto fetch = static_cast<Akonadi::CollectionFetchJob*>(job);
slotFetchCollectionFinished(fetch->collections());
}
});
if (job->error()) {
qCWarning(PIMCOMMONAKONADI_LOG) << job->errorString();
slotFetchCollectionFailed();
} else {
auto fetch = static_cast<Akonadi::CollectionFetchJob *>(job);
slotFetchCollectionFinished(fetch->collections());
}
});
} else {
changeAcl(mTopLevelCollection);
}
......
......@@ -193,7 +193,6 @@ QStringList AddresseeLineEditManager::cleanupRecentAddressEmailList(const QStrin
return mRecentCleanupAddressEmailList;
}
QStringList AddresseeLineEditManager::cleanupEmailList(const QStringList &inputList)
{
return mAddressessLineEditBaloo->cleanupEmailList(inputList);
......
......@@ -110,7 +110,7 @@ void BlackListBalooEmailListTest::shouldAvoidSameEmailWithDisplayNameOrNot()
{
PimCommon::BlackListBalooEmailList blackList;
const QStringList emails = QStringList() << QStringLiteral("foo@kde.org")
<< QStringLiteral("Bla Blo <Foo@kde.org>");
<< QStringLiteral("Bla Blo <Foo@kde.org>");
QCOMPARE(blackList.setEmailFound(emails), 1);
QCOMPARE(blackList.count(), 1);
......
......@@ -114,6 +114,7 @@ public:
mEnabled = groupEnabled.readEntry(mIdentifier, true);
}
}
~SimpleCompletionItem()
{
}
......@@ -188,6 +189,7 @@ public:
{
setItem(item);
}
~CompletionViewItem()
{
delete mItem;
......
......@@ -60,7 +60,7 @@ void RecentAddresses::load(KConfig *config)
KConfigGroup cg(config, "General");
m_maxCount = cg.readEntry("Maximum Recent Addresses", 200);
const QStringList addresses = cg.readEntry("Recent Addresses", QStringList());
for (const QString &address : addresses ) {
for (const QString &address : addresses) {
KContacts::Addressee::parseEmailAddress(address, name, email);
if (!email.isEmpty()) {
KContacts::Addressee addr;
......
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