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

Don't use nullptr for flags

parent f10b6a51
......@@ -38,7 +38,7 @@ namespace Knights {
class ClockWidget : public QWidget {
Q_OBJECT
public:
explicit ClockWidget ( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
explicit ClockWidget ( QWidget* parent = nullptr, Qt::WindowFlags f = {} );
~ClockWidget () override;
public Q_SLOTS:
......
......@@ -39,7 +39,7 @@ class DifficultyDialog : public QDialog {
Q_OBJECT
public:
explicit DifficultyDialog (QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
explicit DifficultyDialog (QWidget* parent = nullptr, Qt::WindowFlags f = {});
~DifficultyDialog() override;
int searchDepth() const;
......
......@@ -69,7 +69,7 @@ class EngineSettings : public QWidget {
};
public:
explicit EngineSettings(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
explicit EngineSettings(QWidget* parent = nullptr, Qt::WindowFlags f = {});
~EngineSettings() override;
private:
......
......@@ -50,7 +50,7 @@ public:
BothPlayersFics
};
explicit GameDialog ( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
explicit GameDialog ( QWidget* parent = nullptr, Qt::WindowFlags f = {} );
~GameDialog() override;
void setupProtocols();
......
......@@ -37,7 +37,7 @@ class HistoryWidget : public QWidget {
Q_OBJECT
public:
explicit HistoryWidget(QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
explicit HistoryWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
~HistoryWidget() override;
private:
......
......@@ -42,7 +42,7 @@ class OfferWidget : public KMessageWidget {
Q_OBJECT
public:
explicit OfferWidget(const Offer& offer, QWidget* parent = nullptr, Qt::WindowFlags f = nullptr);
explicit OfferWidget(const Offer& offer, QWidget* parent = nullptr, Qt::WindowFlags f = {});
~OfferWidget() override;
int id() const;
......
......@@ -56,7 +56,7 @@ public:
typedef QPair<QString,MessageType> Message;
explicit ChatWidget ( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
explicit ChatWidget ( QWidget* parent = nullptr, Qt::WindowFlags f = {} );
~ChatWidget() override;
void addExtraButton ( const QString& text, const QString& title = QString(), const QString& icon = QString() );
......
......@@ -36,7 +36,7 @@ namespace Knights {
class FicsDialog : public QWidget {
Q_OBJECT
public:
explicit FicsDialog ( QWidget* parent = nullptr, Qt::WindowFlags f = nullptr );
explicit FicsDialog ( QWidget* parent = nullptr, Qt::WindowFlags f = {} );
~FicsDialog() override;
int acceptedGameId();
......
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