Add a destructor
This commit is contained in:
parent
135d16daae
commit
5da97d7c0e
|
@ -16,6 +16,11 @@ GameState::GameState(QObject* parent, bool preDealCards) : QObject{parent} {
|
|||
}
|
||||
}
|
||||
|
||||
GameState::~GameState() {
|
||||
qDebug() << "Destroying GameState";
|
||||
cleanupBoard(false);
|
||||
}
|
||||
|
||||
void GameState::dealCards() {
|
||||
qDebug() << "Dealing cards";
|
||||
cleanupBoard(false);
|
||||
|
|
|
@ -20,6 +20,7 @@ class GameState : public QObject {
|
|||
|
||||
public:
|
||||
explicit GameState(QObject* parent = nullptr, bool preDealCards = true);
|
||||
~GameState();
|
||||
|
||||
// Getters
|
||||
QVariantList drawPile() const;
|
||||
|
|
Loading…
Reference in a new issue