Commit 7bef7d97 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify + use nullptr

parent 811d9372
Pipeline #111667 passed with stage
in 1 minute and 10 seconds
......@@ -30,8 +30,8 @@ public:
explicit KCubeWidget (QWidget * parent = nullptr);
~KCubeWidget() override;
Player owner() { return m_owner; }
int value() { return m_value; }
Player owner() const { return m_owner; }
int value() const { return m_value; }
void setOwner (Player newOwner);
void setValue (int newValue);
......
......@@ -42,13 +42,16 @@ protected:
private:
Game * m_game;
KCubeBoxWidget * m_view;
QLabel *currentPlayer;
QAction *undoAction, *redoAction, *stopAction, *hintAction;
KCubeBoxWidget * m_view = nullptr;
QLabel *currentPlayer = nullptr;
QAction *undoAction = nullptr;
QAction *redoAction = nullptr;
QAction *stopAction = nullptr;
QAction *hintAction = nullptr;
void initKAction();
QPushButton * actionButton;
QPushButton * actionButton = nullptr;
QString buttonLook;
private Q_SLOTS:
......
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