Commit f75010be authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Add `explicit' to some constructors that need it.

parent 5805c830
......@@ -32,7 +32,7 @@ class MainWindow: public KParts::MainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
bool loadPart();
......
......@@ -52,7 +52,7 @@ class KERFUFFLE_EXPORT AddToArchive : public KJob
Q_OBJECT
public:
AddToArchive(QObject *parent = 0);
explicit AddToArchive(QObject *parent = 0);
~AddToArchive();
bool showAddDialog();
......
......@@ -41,7 +41,7 @@ class KERFUFFLE_EXPORT ExtractionDialog : public KDirSelectDialog
{
Q_OBJECT
public:
ExtractionDialog(QWidget *parent = 0);
explicit ExtractionDialog(QWidget *parent = 0);
virtual ~ExtractionDialog();
void setShowSelectedFiles(bool);
......
......@@ -42,7 +42,7 @@ class ArchiveModel: public QAbstractItemModel
{
Q_OBJECT
public:
ArchiveModel(const QString &dbusPathName, QObject *parent = 0);
explicit ArchiveModel(const QString &dbusPathName, QObject *parent = 0);
~ArchiveModel();
QVariant data(const QModelIndex &index, int role) const;
......
......@@ -29,7 +29,7 @@ class ArchiveView : public QTreeView
Q_OBJECT
public:
ArchiveView(QWidget *parent = 0);
explicit ArchiveView(QWidget *parent = 0);
virtual void dragEnterEvent(class QDragEnterEvent * event);
virtual void dropEvent(class QDropEvent * event);
virtual void dragMoveEvent(class QDragMoveEvent * event);
......
......@@ -33,7 +33,7 @@ class JobTrackerWidget: public QFrame, public Ui::JobTrackerWidget
Q_OBJECT
public:
JobTrackerWidget(QWidget *parent = 0);
explicit JobTrackerWidget(QWidget *parent = 0);
};
class JobTracker: public KAbstractWidgetJobTracker
......@@ -41,7 +41,7 @@ class JobTracker: public KAbstractWidgetJobTracker
Q_OBJECT
public:
JobTracker(QWidget *parent = 0);
explicit JobTracker(QWidget *parent = 0);
~JobTracker();
virtual QWidget *widget(KJob *);
......
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