Commit 7927ef07 authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent f3e0fd54
......@@ -637,7 +637,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
d->mResultView->verticalHeader()->hide();
d->mResultView->setSortingEnabled(true);
d->mResultView->horizontalHeader()->setSortIndicatorShown(true);
connect(d->mResultView, QOverload<const QModelIndex &>::of(&QTableView::clicked), [this]() {d->slotSelectionChanged(); });
connect(d->mResultView, QOverload<const QModelIndex &>::of(&QTableView::clicked), this, [this]() {d->slotSelectionChanged(); });
topLayout->addWidget(d->mResultView);
d->mResultView->setContextMenuPolicy(Qt::CustomContextMenu);
......
......@@ -303,7 +303,7 @@ const QStringList KPIM::AddresseeLineEditPrivate::adjustedCompletionItems(bool f
if (AddresseeLineEditManager::self()->completion()->order() == KCompletion::Weighted) {
// Sort the sections
QList<SourceWithWeight> sourcesAndWeights;
QVector<SourceWithWeight> sourcesAndWeights;
const int numberOfCompletionSources(AddresseeLineEditManager::self()->completionSources.count());
sourcesAndWeights.reserve(numberOfCompletionSources);
for (int i = 0; i < numberOfCompletionSources; ++i) {
......
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