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

Use nullptr/explicit

parent be363ae0
......@@ -55,7 +55,7 @@ class ActionsTreeWidget : public QTreeWidget
Q_PROPERTY( int actionsChanged READ actionsChanged WRITE setActionsChanged USER true )
public:
ActionsTreeWidget(QWidget* parent = 0);
explicit ActionsTreeWidget(QWidget* parent = nullptr);
void setActionsChanged(int);
int actionsChanged() const;
......
......@@ -38,7 +38,7 @@ class GeneralWidget : public QWidget
{
Q_OBJECT
public:
GeneralWidget(QWidget* parent);
explicit GeneralWidget(QWidget* parent);
void updateWidgets();
private:
......@@ -49,7 +49,7 @@ class ActionsWidget : public QWidget
{
Q_OBJECT
public:
ActionsWidget(QWidget* parent);
explicit ActionsWidget(QWidget* parent);
void setActionList(const ActionList&);
void setExcludedWMClasses(const QStringList&);
......@@ -87,7 +87,7 @@ class AdvancedWidget : public QWidget
Q_OBJECT
public:
explicit AdvancedWidget( QWidget* parent = 0L );
explicit AdvancedWidget( QWidget* parent = nullptr );
~AdvancedWidget() override;
void setWMClasses( const QStringList& items );
......
......@@ -35,7 +35,7 @@ class EditActionDialog : public QDialog
{
Q_OBJECT
public:
EditActionDialog(QWidget* parent);
explicit EditActionDialog(QWidget* parent);
~EditActionDialog() override;
/**
......
......@@ -32,7 +32,7 @@ class History : public QObject
{
Q_OBJECT
public:
History( QObject* parent );
explicit History( QObject* parent );
~History() override;
/**
......
......@@ -515,7 +515,7 @@ void Klipper::slotConfigure()
return;
}
ConfigDialog *dlg = new ConfigDialog( 0, KlipperSettings::self(), this, m_collection );
ConfigDialog *dlg = new ConfigDialog( nullptr, KlipperSettings::self(), this, m_collection );
connect(dlg, &KConfigDialog::settingsChanged, this, &Klipper::loadSettings);
dlg->show();
......
......@@ -43,7 +43,7 @@ class URLGrabber : public QObject
Q_OBJECT
public:
URLGrabber(History* history);
explicit URLGrabber(History* history);
~URLGrabber() override;
/**
......
Supports Markdown
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