From a0053914138ef54b2011d240285155e62d568dc3 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Wed, 9 Jan 2019 16:47:00 +0100 Subject: [PATCH] Use wxEventType instead of int This parameter identifies the type of the event so it should be of type wxEventType. --- include/wx/propgrid/propgrid.h | 2 +- src/propgrid/propgrid.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index 7a4587a63f..a7f5f9dd64 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -1926,7 +1926,7 @@ protected: // Send event from the property grid. // Omit the wxPG_SEL_NOVALIDATE flag to allow vetoing the event - bool SendEvent( int eventType, wxPGProperty* p, + bool SendEvent( wxEventType eventType, wxPGProperty* p, wxVariant* pValue = NULL, unsigned int selFlags = wxPG_SEL_NOVALIDATE, unsigned int column = 1 ); diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 4dfbddc3c7..5faa8b9d40 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4746,7 +4746,7 @@ void wxPropertyGrid::SetFocusOnCanvas() // selFlags uses same values DoSelectProperty's flags // Returns true if event was vetoed. -bool wxPropertyGrid::SendEvent( int eventType, wxPGProperty* p, +bool wxPropertyGrid::SendEvent( wxEventType eventType, wxPGProperty* p, wxVariant* pValue, unsigned int selFlags, unsigned int column )