Use variable of type wxEventType to store the value returned by GetEventType function.
Since wxEvent::GetEventType() returns wxEventType value the variable used to hold returned value should be also of the same type.
This commit is contained in:
@@ -290,7 +290,7 @@ wxPGWindowList wxPGSpinCtrlEditor::CreateControls( wxPropertyGrid* propgrid, wxP
|
||||
bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* property,
|
||||
wxWindow* wnd, wxEvent& event ) const
|
||||
{
|
||||
int evtType = event.GetEventType();
|
||||
wxEventType evtType = event.GetEventType();
|
||||
int keycode = -1;
|
||||
int spins = 1;
|
||||
bool bigStep = false;
|
||||
|
@@ -536,7 +536,7 @@ protected:
|
||||
void OnMouseEvent( wxMouseEvent& event )
|
||||
{
|
||||
wxMilliClock_t t = ::wxGetLocalTimeMillis();
|
||||
int evtType = event.GetEventType();
|
||||
wxEventType evtType = event.GetEventType();
|
||||
|
||||
if ( m_property->HasFlag(wxPG_PROP_USE_DCC) &&
|
||||
!m_combo->IsPopupShown() )
|
||||
|
@@ -352,7 +352,7 @@ private:
|
||||
|
||||
wxPropertyGrid* pg = m_manager->GetGrid();
|
||||
int col = hcEvent.GetColumn();
|
||||
int evtType = event.GetEventType();
|
||||
wxEventType evtType = event.GetEventType();
|
||||
|
||||
if ( evtType == wxEVT_HEADER_RESIZING )
|
||||
{
|
||||
|
Reference in New Issue
Block a user