Commit ca17b8ee authored by Laurent Montel's avatar Laurent Montel 😁

Fix clazy warning

parent 01848089
......@@ -112,7 +112,7 @@ KfindDlg::KfindDlg(const QUrl &url, QWidget *parent)
KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true);
buttonBox->button(QDialogButtonBox::Help)->setMenu(helpMenu->menu());
dirwatch = NULL;
dirwatch = nullptr;
setFocus();
}
......
......@@ -721,7 +721,7 @@ void KfindTabWidget::setQuery(KQuery *query)
query->setTimeRange(time1, time2);
} else {
time_t cur = time(NULL);
time_t cur = time(nullptr);
time_t minutes = cur;
switch (betweenType->currentIndex()) {
......
......@@ -207,7 +207,7 @@ void KQuery::checkEntries()
}
/* List of files found using slocate */
void KQuery::slotListEntries(QStringList list)
void KQuery::slotListEntries(const QStringList &list)
{
metaKeyRx = QRegExp(m_metainfokey);
metaKeyRx.setPatternSyntax(QRegExp::Wildcard);
......@@ -597,7 +597,7 @@ void KQuery::setShowHiddenFiles(bool showHidden)
void KQuery::slotreadyReadStandardError()
{
KMessageBox::error(NULL, QString::fromLocal8Bit(processLocate->readAllStandardOutput()), i18nc("@title:window", "Error while using locate"));
KMessageBox::error(nullptr, QString::fromLocal8Bit(processLocate->readAllStandardOutput()), i18nc("@title:window", "Error while using locate"));
}
void KQuery::slotreadyReadStandardOutput()
......
......@@ -70,7 +70,7 @@ private:
public Q_SLOTS:
/* List of files found using slocate */
void slotListEntries(QStringList);
void slotListEntries(const QStringList&);
protected Q_SLOTS:
/* List of files found using KIO */
......
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