diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 10:49:31 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-05-10 10:49:31 +0200 |
| commit | a9b9ed95f39cff40710e74ed81fdedee1cfad9e2 (patch) | |
| tree | acd01294ad1ae6f88b7515d6a6d8ac790f444f1d /src/ochess.cpp | |
| parent | ff671f2171396088210600bab39ad9631e0d1daf (diff) | |
Remove all warnings from source code
Diffstat (limited to 'src/ochess.cpp')
| -rw-r--r-- | src/ochess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<TabInfos *> MyApp::ListTabInfos() { std::vector<TabInfos *> 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<TabInfos *>(notebook->GetPage(i))); } return (tinfos); @@ -53,7 +53,7 @@ std::vector<TabInfos *> 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<TabInfos *>(notebook->GetPage(i))->id== toFocus->id) notebook->SetSelection(i); } |
