From 8a14abe007fb7b265e875c99aef7f53d5d185f39 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 31 Dec 2022 20:45:03 +0100 Subject: Cleaning pointers related code --- src/game_tab/left_panel/GameTabLeftPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game_tab/left_panel/GameTabLeftPanel.cpp') diff --git a/src/game_tab/left_panel/GameTabLeftPanel.cpp b/src/game_tab/left_panel/GameTabLeftPanel.cpp index 71d44bf..70a09cd 100644 --- a/src/game_tab/left_panel/GameTabLeftPanel.cpp +++ b/src/game_tab/left_panel/GameTabLeftPanel.cpp @@ -80,7 +80,7 @@ void GameTabLeftPanel::OnPlay(wxCommandEvent &event) { std::string fen = game->GetFen(); std::map captures; HalfMove *m = game->GetCurrentMove(); - if (m != NULL) { + if (m != nullptr) { captures = m->GetLineCaptures(); } } @@ -89,7 +89,7 @@ void GameTabLeftPanel::Notify(bool animate, bool backward) { std::string fen = game->GetFen(); std::map captures; HalfMove *m = game->GetCurrentMove(); - if (m != NULL) { + if (m != nullptr) { captures = m->GetLineCaptures(); } -- cgit v1.2.3