Commit f4828413 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use explicit

parent 09fbdaaa
......@@ -40,7 +40,7 @@ class KfindDlg : public KDialog
Q_OBJECT
public:
explicit KfindDlg(const QUrl &url, QWidget *parent = 0);
explicit KfindDlg(const QUrl &url, QWidget *parent = nullptr);
~KfindDlg();
void copySelection();
......
......@@ -64,7 +64,7 @@ private:
class KFindItemModel : public QAbstractTableModel
{
public:
KFindItemModel(KFindTreeView *parent);
explicit KFindItemModel(KFindTreeView *parent);
void insertFileItems(const QList< QPair<KFileItem, QString> > &);
......@@ -108,7 +108,7 @@ class KFindSortFilterProxyModel : public QSortFilterProxyModel
Q_OBJECT
public:
KFindSortFilterProxyModel(QObject *parent = 0)
explicit KFindSortFilterProxyModel(QObject *parent = nullptr)
: QSortFilterProxyModel(parent)
{
}
......@@ -121,7 +121,7 @@ class KFindTreeView : public QTreeView
{
Q_OBJECT
public:
KFindTreeView(QWidget *parent, KfindDlg *findDialog);
explicit KFindTreeView(QWidget *parent, KfindDlg *findDialog);
~KFindTreeView();
void beginSearch(const QUrl &baseUrl);
......
......@@ -632,7 +632,7 @@ bool KfindTabWidget::isDateValid()
}
if (!str.isEmpty()) {
KMessageBox::sorry(0, str);
KMessageBox::sorry(nullptr, str);
return false;
}
return true;
......
......@@ -47,7 +47,7 @@ class KfindTabWidget : public KTabWidget
Q_OBJECT
public:
KfindTabWidget(QWidget *parent = 0);
explicit KfindTabWidget(QWidget *parent = nullptr);
virtual ~KfindTabWidget();
void initMimeTypes();
void initSpecialMimeTypes();
......@@ -141,7 +141,7 @@ class KDigitValidator : public QValidator
Q_OBJECT
public:
KDigitValidator(QWidget *parent);
explicit KDigitValidator(QWidget *parent);
~KDigitValidator();
QValidator::State validate(QString &input, int &) const Q_DECL_OVERRIDE;
......
......@@ -39,7 +39,7 @@ class KQuery : public QObject
Q_OBJECT
public:
KQuery(QObject *parent = 0);
explicit KQuery(QObject *parent = nullptr);
~KQuery();
/* Functions to set Query requirements */
......@@ -83,7 +83,7 @@ protected Q_SLOTS:
void slotendProcessLocate(int, QProcess::ExitStatus);
Q_SIGNALS:
void foundFileList(QList< QPair<KFileItem, QString> >);
void foundFileList(const QList< QPair<KFileItem, QString> > &);
void result(int);
private:
......
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