From a9b9ed95f39cff40710e74ed81fdedee1cfad9e2 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 10 May 2023 10:49:31 +0200 Subject: Remove all warnings from source code --- src/ochess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ochess.cpp') diff --git a/src/ochess.cpp b/src/ochess.cpp index 62a5c04..6e93821 100644 --- a/src/ochess.cpp +++ b/src/ochess.cpp @@ -45,7 +45,7 @@ bool MyApp::OnInit() { std::vector MyApp::ListTabInfos() { std::vector tinfos; wxAuiNotebook *notebook = ((MainWindow *)this->GetTopWindow())->notebook; - for (int i = 0; i < notebook->GetPageCount(); i++) { + for (std::size_t i = 0; i < notebook->GetPageCount(); i++) { tinfos.push_back(dynamic_cast(notebook->GetPage(i))); } return (tinfos); @@ -53,7 +53,7 @@ std::vector MyApp::ListTabInfos() { void MyApp::FocusOnTab(TabInfos * toFocus){ wxAuiNotebook *notebook = ((MainWindow *)this->GetTopWindow())->notebook; - for (int i = 0; i < notebook->GetPageCount(); i++) { + for (std::size_t i = 0; i < notebook->GetPageCount(); i++) { if(dynamic_cast(notebook->GetPage(i))->id== toFocus->id) notebook->SetSelection(i); } -- cgit v1.2.3