From 44ea0a50a39d58cb9e1f167c2973e396b4d853aa Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 28 Feb 2022 20:16:57 +0100 Subject: Migrate to std::shared_ptr --- src/ochess.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/ochess.hpp') diff --git a/src/ochess.hpp b/src/ochess.hpp index 6303e31..3b2769e 100644 --- a/src/ochess.hpp +++ b/src/ochess.hpp @@ -6,12 +6,12 @@ #endif #include "binres/binres.hpp" +#include "gui.h" +#include #include #include #include // Check file exists etc #include -#include "gui.h" -#include #define MAINWIN ((MainWindow *)wxGetApp().GetTopWindow()) @@ -46,6 +46,8 @@ wxDECLARE_APP(MyApp); ///@brief Abort ochess with a message void Abort(std::string msg); +class Game; + /** * @brief Attach informations to the application tabs * @@ -56,6 +58,6 @@ public: Type type; TabInfos(Type type_) : type(type_) {} virtual void ApplyPreferences() = 0; - virtual void *GetGame() = 0; + virtual std::shared_ptr GetGame() = 0; virtual void *GetBase() = 0; }; -- cgit v1.2.3