Fixes 11 Compiler Warnings (#10753)

* fixes: wxTimerEvent not supposed to be created by user code [-Wdeprecated-declarations]

* use wxTimerEvent instead of wxCommandEvent.

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Dipl.-Ing. Raoul Rubien, BSc
2026-01-03 09:30:14 +01:00
committed by GitHub
parent 504a5d3b70
commit bed3cf154a
5 changed files with 9 additions and 9 deletions

View File

@@ -61,7 +61,7 @@ bool MultiMachinePage::Show(bool show)
m_refresh_timer->Stop();
m_refresh_timer->SetOwner(this);
m_refresh_timer->Start(2000);
wxPostEvent(this, wxTimerEvent());
wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
}
else {
m_refresh_timer->Stop();
@@ -96,7 +96,7 @@ void MultiMachinePage::init_timer()
m_refresh_timer = new wxTimer();
//m_refresh_timer->SetOwner(this);
//m_refresh_timer->Start(8000);
//wxPostEvent(this, wxTimerEvent());
//wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
}
void MultiMachinePage::on_timer(wxTimerEvent& event)
@@ -482,7 +482,7 @@ bool MultiMachinePickPage::Show(bool show)
//m_refresh_timer->Stop();
//m_refresh_timer->SetOwner(this);
//m_refresh_timer->Start(4000);
//wxPostEvent(this, wxTimerEvent());
//wxPostEvent(this, wxTimerEvent(*m_refresh_timer));
}
else {
//m_refresh_timer->Stop();