aboutsummaryrefslogtreecommitdiff
path: root/src/game_tab/GameTab.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-05-10 10:49:31 +0200
commita9b9ed95f39cff40710e74ed81fdedee1cfad9e2 (patch)
treeacd01294ad1ae6f88b7515d6a6d8ac790f444f1d /src/game_tab/GameTab.cpp
parentff671f2171396088210600bab39ad9631e0d1daf (diff)
Remove all warnings from source code
Diffstat (limited to 'src/game_tab/GameTab.cpp')
-rw-r--r--src/game_tab/GameTab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game_tab/GameTab.cpp b/src/game_tab/GameTab.cpp
index e9ce482..2b98415 100644
--- a/src/game_tab/GameTab.cpp
+++ b/src/game_tab/GameTab.cpp
@@ -5,7 +5,7 @@ wxDEFINE_EVENT(GAME_CHANGE, wxCommandEvent);
wxDEFINE_EVENT(SHOW_ENGINE_EVALUATION, wxCommandEvent);
GameTab::GameTab(wxFrame *parent, std::shared_ptr<Game> game)
- : wxPanel(parent), game(game), TabInfos(TabInfos::GAME) {
+ : wxPanel(parent), TabInfos(TabInfos::GAME), game(game) {
// Splitter
wxSplitterWindow *splitter = new wxSplitterWindow(this, wxID_ANY);
splitter->SetSashGravity(0.8);
@@ -41,7 +41,7 @@ GameTab::GameTab(wxFrame *parent, std::shared_ptr<Game> game)
void GameTab::OnToolClick(wxCommandEvent &event){
short id=event.GetId();
if(id==0){
- if(!related_file.size()>0){
+ if(!(related_file.size()>0)){
wxFileDialog
newFileDialog(this, _("Save Game"), "", "",
"PGN files (*.pgn)|*.pgn", wxFD_SAVE|wxFD_OVERWRITE_PROMPT);