From 5a11ce3e92d56613d79e413aa1fef15eb49335d6 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 14 Sep 2025 08:16:42 -0700 Subject: [PATCH] revert parent to AbstractGame --- cockatrice/src/game/game_meta_info.cpp | 2 +- cockatrice/src/game/game_meta_info.h | 2 +- cockatrice/src/game/game_state.cpp | 2 +- cockatrice/src/game/game_state.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/game/game_meta_info.cpp b/cockatrice/src/game/game_meta_info.cpp index 5c91f039a..7f3086cf6 100644 --- a/cockatrice/src/game/game_meta_info.cpp +++ b/cockatrice/src/game/game_meta_info.cpp @@ -2,6 +2,6 @@ #include "abstract_game.h" -GameMetaInfo::GameMetaInfo(QObject *parent) : QObject(parent) +GameMetaInfo::GameMetaInfo(AbstractGame *parent) : QObject(parent) { } diff --git a/cockatrice/src/game/game_meta_info.h b/cockatrice/src/game/game_meta_info.h index e7e887db3..dbf193e0c 100644 --- a/cockatrice/src/game/game_meta_info.h +++ b/cockatrice/src/game/game_meta_info.h @@ -15,7 +15,7 @@ class GameMetaInfo : public QObject { Q_OBJECT public: - explicit GameMetaInfo(QObject *parent); + explicit GameMetaInfo(AbstractGame *parent); QMap roomGameTypes; diff --git a/cockatrice/src/game/game_state.cpp b/cockatrice/src/game/game_state.cpp index c0e4c016e..c1ad38542 100644 --- a/cockatrice/src/game/game_state.cpp +++ b/cockatrice/src/game/game_state.cpp @@ -2,7 +2,7 @@ #include "abstract_game.h" -GameState::GameState(QObject *parent, +GameState::GameState(AbstractGame *parent, int _secondsElapsed, int _hostId, bool _isLocalGame, diff --git a/cockatrice/src/game/game_state.h b/cockatrice/src/game/game_state.h index a9f9021b1..63d38ebb7 100644 --- a/cockatrice/src/game/game_state.h +++ b/cockatrice/src/game/game_state.h @@ -16,7 +16,7 @@ class GameState : public QObject Q_OBJECT public: - explicit GameState(QObject *parent, + explicit GameState(AbstractGame *parent, int secondsElapsed, int hostId, bool isLocalGame,