Use literals instead of raw values

This commit is contained in:
Artur Wieczorek 2023-02-18 18:59:05 +01:00
parent 274a20bf65
commit 0c321cd039
3 changed files with 4 additions and 4 deletions

View file

@ -1965,7 +1965,7 @@ void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
if ( DoSelectPage(index) )
{
// Event dispatching must be last.
m_pPropGrid->SendEvent( wxEVT_PG_PAGE_CHANGED, (wxPGProperty*)nullptr );
m_pPropGrid->SendEvent( wxEVT_PG_PAGE_CHANGED, wxNullProperty );
}
else
{

View file

@ -4842,7 +4842,7 @@ bool wxPropertyGrid::HandleMouseClick( int x, unsigned int y, wxMouseEvent &even
{
ResetColumnSizes( true );
SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)nullptr);
SendEvent(wxEVT_PG_COLS_RESIZED, wxNullProperty);
SendEvent(wxEVT_PG_COL_DRAGGING,
m_propHover,
nullptr,
@ -5005,7 +5005,7 @@ bool wxPropertyGrid::HandleMouseMove( int x, unsigned int y,
wxPG_SPLITTER_REFRESH |
wxPG_SPLITTER_FROM_EVENT);
SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)nullptr);
SendEvent(wxEVT_PG_COLS_RESIZED, wxNullProperty);
SendEvent(wxEVT_PG_COL_DRAGGING,
m_propHover,
nullptr,

View file

@ -389,7 +389,7 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
if ( IsDisplayed() )
{
pg->SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)nullptr);
pg->SendEvent(wxEVT_PG_COLS_RESIZED, wxNullProperty);
}
}