mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-19 04:09:41 +00:00
Migrate to std::shared_ptr<Game>
This commit is contained in:
parent
4c959fe12e
commit
44ea0a50a3
16 changed files with 44 additions and 49 deletions
|
@ -9,12 +9,12 @@ wxDECLARE_EVENT(GAME_CHANGE, wxCommandEvent);
|
|||
|
||||
|
||||
class GameTabLeftPanel : public TabGameLeftPanel {
|
||||
Game *game;
|
||||
std::shared_ptr<Game> game;
|
||||
BoardCanvas *board_canvas;
|
||||
void NotifyEditor();
|
||||
|
||||
public:
|
||||
GameTabLeftPanel(wxFrame *parent, Game *game);
|
||||
GameTabLeftPanel(wxFrame *parent, std::shared_ptr<Game> game);
|
||||
void Notify();
|
||||
void OnPlay(wxCommandEvent &event);
|
||||
void OnGotoMove(wxCommandEvent &event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue