aboutsummaryrefslogtreecommitdiff
path: root/src/ochess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ochess.cpp')
-rw-r--r--src/ochess.cpp4
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);
}