Resolve ambiguity in calling overloaded wxPropertyGrid::SendEvent()

The right overloaded SendEvent() function can be determined by explicitly
casting second argument of the call to (wxPGProperty*) type.
This commit is contained in:
Artur Wieczorek 2019-04-28 18:34:36 +02:00
parent 96e24e73d6
commit 92d2be5842
3 changed files with 4 additions and 4 deletions

View File

@ -368,7 +368,7 @@ private:
OnSetColumnWidth(col, colWidth); OnSetColumnWidth(col, colWidth);
pg->SendEvent(wxEVT_PG_COLS_RESIZED, NULL); pg->SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
pg->SendEvent(wxEVT_PG_COL_DRAGGING, pg->SendEvent(wxEVT_PG_COL_DRAGGING,
NULL, NULL, 0, NULL, NULL, 0,
(unsigned int)col); (unsigned int)col);

View File

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

View File

@ -401,7 +401,7 @@ void wxPropertyGridPageState::OnClientWidthChange( int newWidth, int widthChange
if ( pg->GetState() == this ) if ( pg->GetState() == this )
{ {
pg->SendEvent(wxEVT_PG_COLS_RESIZED, NULL); pg->SendEvent(wxEVT_PG_COLS_RESIZED, (wxPGProperty*)NULL);
} }
} }