aboutsummaryrefslogtreecommitdiff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 55f35f5..ea20fd5 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -89,11 +89,13 @@ void MainWindow::AddPage(wxWindow* window, TabInfos* infos){
}
void MainWindow::OnAuiNotebookPageClosed(wxAuiNotebookEvent& event){
+ UNUSED(event);
// Refresh tab that require knowledge on other tabs
for(auto i: wxGetApp().ListTabInfos()){i->Refresh();}
}
void MainWindow::OnCloseTabEvent(wxCommandEvent &event) {
+ UNUSED(event);
notebook->DeletePage(notebook->GetSelection());
// Refresh tab that require knowledge on other tabs
for(auto i: wxGetApp().ListTabInfos()){i->Refresh();}
@@ -102,7 +104,7 @@ void MainWindow::OnCloseTabEvent(wxCommandEvent &event) {
void MainWindow::OnCloseTabLinkedTo(wxCommandEvent &event){
TabInfos *infosEvent=(TabInfos*)event.GetClientData();
// Now close all tabs in the notebook related to the one in the event
- int i=0;
+ std::size_t i=0;
while(i<notebook->GetPageCount()){
wxWindow *page=notebook->GetPage(i);
TabInfos* infos=(TabInfos*)page->GetClientData();
@@ -180,6 +182,7 @@ void MainWindow::OnMenuItemClick(wxCommandEvent &event) {
}
void MainWindow::OnRefreshEngineList(wxCommandEvent &event) {
+ UNUSED(event);
// Delete all items
wxMenuItemList items = manageMenu->GetMenuItems();
for (wxMenuItem *item : items) {
@@ -230,7 +233,7 @@ void MainWindow::OpenSettings() {
}
void MainWindow::ApplyPreferences() {
- for (int i = 0; i < notebook->GetPageCount(); i++) {
+ for (std::size_t i = 0; i < notebook->GetPageCount(); i++) {
TabInfos *infos = (TabInfos*)(notebook->GetPage(i))->GetClientData();
infos->ApplyPreferences();
}
@@ -261,6 +264,7 @@ void MainWindow::NewGame(bool useFen) {
}
void MainWindow::OnPageChange(wxAuiNotebookEvent &event) {
+ UNUSED(event);
TabInfos *infos = (TabInfos*)(notebook->GetCurrentPage())->GetClientData();
if (infos->type != TabInfos::GAME) {
for (short i = 10; i < 20; i++) {