diff options
Diffstat (limited to 'src/game_tab/right_panel')
| -rw-r--r-- | src/game_tab/right_panel/GameTabRightPanel.cpp | 4 | ||||
| -rw-r--r-- | src/game_tab/right_panel/LiveEngineDialog.cpp | 6 | ||||
| -rw-r--r-- | src/game_tab/right_panel/editor/EditorCanvas.cpp | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/src/game_tab/right_panel/GameTabRightPanel.cpp b/src/game_tab/right_panel/GameTabRightPanel.cpp index ff9576d..3a9d2b7 100644 --- a/src/game_tab/right_panel/GameTabRightPanel.cpp +++ b/src/game_tab/right_panel/GameTabRightPanel.cpp @@ -46,6 +46,7 @@ GameTabRightPanel::GameTabRightPanel(wxFrame *parent, std::shared_ptr<Game> game } void GameTabRightPanel::OnLiveAnalysis(wxCommandEvent &event) { + UNUSED(event); if (live_engine == nullptr) { int selection = engine_list->GetSelection(); if (selection != wxNOT_FOUND) { @@ -84,6 +85,7 @@ void GameTabRightPanel::OnTagSelected(wxListEvent &event) { } void GameTabRightPanel::OnTagDeselected(wxListEvent &event) { + UNUSED(event); selected_item = -1; delete_button->Enable(false); } @@ -114,6 +116,7 @@ void GameTabRightPanel::OnCommentChange(wxCommandEvent &event) { } void GameTabRightPanel::OnApply(wxCommandEvent &event) { + UNUSED(event); std::string key = tagTextCtrl->GetValue().ToStdString(); if (key == "FEN") { SHOW_DIALOG_ERROR("Editing the FEN tag is forbidden"); @@ -130,6 +133,7 @@ void GameTabRightPanel::OnApply(wxCommandEvent &event) { } void GameTabRightPanel::OnDelete(wxCommandEvent &event) { + UNUSED(event); if (selected_item >= 0) { wxListItem item; item.SetColumn(0); diff --git a/src/game_tab/right_panel/LiveEngineDialog.cpp b/src/game_tab/right_panel/LiveEngineDialog.cpp index 4e86c63..e3f4951 100644 --- a/src/game_tab/right_panel/LiveEngineDialog.cpp +++ b/src/game_tab/right_panel/LiveEngineDialog.cpp @@ -1,8 +1,7 @@ #include "LiveEngineDialog.hpp" LiveEngineDialog::LiveEngineDialog(wxWindow *parent, std::uint32_t engine_id) - : DialogLiveEngine(parent), interval(1000), - engine(nullptr) { + : DialogLiveEngine(parent), engine(nullptr), interval(1000) { lines_list->InsertColumn(0, "#", wxLIST_FORMAT_LEFT, 50); lines_list->InsertColumn(1, "CP", wxLIST_FORMAT_LEFT, 70); lines_list->InsertColumn(2, "Line", wxLIST_FORMAT_LEFT, 300); @@ -63,6 +62,7 @@ void LiveEngineDialog::InitEngine() { } void LiveEngineDialog::OnClose(wxCloseEvent &e) { + UNUSED(e); if (engine != nullptr) { wxLogDebug("Close live engine!!"); timer.Stop(); @@ -83,6 +83,7 @@ void LiveEngineDialog::SetFEN(std::string fen) { } void LiveEngineDialog::TogglePauseEngine(wxCommandEvent &event) { + UNUSED(event); if (timer.IsRunning()) { StopEngine(); engine_stop_button->SetLabel("Restart"); @@ -115,6 +116,7 @@ void LiveEngineDialog::StartEngine() { } void LiveEngineDialog::OnTimerTick(wxTimerEvent &event) { + UNUSED(event); lines_list->DeleteAllItems(); // Clear lines_list engine->SyncAfter(0); EngineEvaluation *eval=new EngineEvaluation(); diff --git a/src/game_tab/right_panel/editor/EditorCanvas.cpp b/src/game_tab/right_panel/editor/EditorCanvas.cpp index 9f9c2e3..1df39b9 100644 --- a/src/game_tab/right_panel/editor/EditorCanvas.cpp +++ b/src/game_tab/right_panel/editor/EditorCanvas.cpp @@ -22,6 +22,7 @@ EditorCanvas::EditorCanvas(wxFrame *parent, std::shared_ptr<Game> game) } void EditorCanvas::OnPaint(wxPaintEvent &event) { + UNUSED(event); wxPaintDC current_dc(this); current_dc.SetBackground(*wxWHITE_BRUSH); current_dc.Clear(); |
