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

Add `explicit' to some constructors that need it.

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